Global

Methods

(async) asyncFrom(asyncIterable, mapFunction) → {Array}

Get an array from an asynchronous iterable.
Parameters:
Name Type Description
asyncIterable AsyncIterable any async interable (like an asynchronous generator)
mapFunction AsyncFunction | function | undefined a callback to map values from the asyncIterable to final return values in the array
Source:
Returns:
Type
Array

merge() → {Object}

Merge multiply associative array objects together into a new object. Properties in later objects will override properties in earlier objects.
Parameters:
Name Type Description
...args Objects to merge together
Source:
Returns:
the merged object
Type
Object

mod(n, m) → {number}

Calculate modulo with behavior for negative dividends. E.g. mod(7, 4) === 3 && mod(-11, 7) === 3
Parameters:
Name Type Description
n number the dividend
m number the divisor
Source:
Returns:
the modulo (m % n)
Type
number