forEach

fun forEach(callback: (name: String, type: String) -> dynamic, types: Array<String>? = definedExternally): Promise<Unit>

Iterate over entries. The callback can return false to stop the loop.

Includes icons, variations and aliases by default and supports asynchronous callbacks.