the called function
beforeCall: Function, afterCall: Function }} { beforeCall, a prepositive intercept(er), if exist and return false, the fn will not be executed. afterCall, if exit, can instead of the fn's return value }
Check the running context is a standard browser environment
web workers: typeof window -> undefined typeof document -> undefined
react-native: navigator.product -> 'ReactNative' nativescript: navigator.product -> 'NativeScript' or 'NS'
Generated using TypeDoc
SYNOPSIS:
Iterate over an Array or an Object invoking a function for each item.
If
obj
is an Array callback will be called passing the value, index, and complete array for each item.If 'obj' is an Object callback will be called passing the value, key, and complete object for each property.