helpers

v1.0.1arrow_drop_down
v1.0.1
v1.0.0
STATUS
Failing
DOWNLOADS
75
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
6 years ago
SIZE
1 KB
Returns true if the object contain the given key.
1 contributor
Install helpers as a package?
Copied
npm i @bit/tomlandau.belle.utils.helpers
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right

Returns true if the object contain the given key.

Return a copy of the object, filtered to omit the blacklisted keys (or array of keys).

Looks through each value in the list, returning an array of all the values that pass a truth test (predicate).

Returns true if the provided object is an iterable, except for strings for which it will return false.

Returns all the names of the object’s own properties. This will not include properties inherited through prototypes.

Returns a new array of values by mapping each value in list through a transformation function (predicate).

Returns a new object by mapping each property in an object through a transformation function (predicate).

Returns the first value that passes a truth test (predicate), or undefined if no value passes the test. Only works for iterable objects e.g. arrays.

Reverse the array passed to it.

Shifts given array by given number of positions.

Returns true if object contains no values (no enumerable own-properties).

Returns the index of the first value that passes a truth test (predicate), or undefined if no value passes the test. Only works for iterable objects e.g. arrays.

Returns the first element of an iterable object.

Returns the last element of an iterable object.

Return the number of values in the list.

Returns true if any of the values in the list pass the predicate truth test.

Returns the union of the passed-in arrays: the list of unique items, in order, that are present in one or more of the arrays.

Recursive function for flattening an iterable.

Flattens a nested array (the nesting can be to any depth).

Looks through a collection of React children elements, filtering them according to the predicate passed.

Looks through a collection of React children elements, filtering them according to the predicate passed.

Help and resources