UNPKG

@mescius/dspdfviewer

Version:
15 lines (14 loc) 915 B
/** * @param "arr" (required) - array-like or iterable object to convert it to an array. * @param "callbackFn" (optional) - function to call on every element of the array. * @param "thisArg" (optional) - value to use as this when executing callback * Return value - new Array instance * * The callbackFn argument usage is like in Array.map() callback. * The callbackFn function accepts the following arguments: * @param "currentValue" (required) - the current element being processed in the array. * @param "index" (optional) - the index of the current element being processed in the array. * @param "array" (optional) - he array map was called upon. * Callback function that is called for every element of "arr". Each time callback executes, the returned value is added to new array ("arNew"). */ declare function arrayFrom(arr: any, callbackFn: any, thisArg: any): any[];