@guanghechen/helper-func
v6.0.0-alpha.1
Published
Helpful utility funcs.
Downloads
17
Readme
Helpful utility funcs.
Install
npm
npm install --save-dev @guanghechen/helper-func
yarn
yarn add --dev @guanghechen/helper-func
Usage
Name | Description
:------------------:|:----------------------------------------------------------------
delay
| Waiting a given million seconds.
falsy
| Always return false
.
filterIterable
| .filter
method for Iterable structure.
identity
| Return the input data directly.
iterable2map
| Create a map from list.
mapIterable
| .map
method for Iterable structure.
noop
| Do nothing.
parseBytesString
| Parse texts like 1M, 1Mb, 1G to the number of bytes.
truthy
| Always return true
.