0.2.3 • Published 2 years ago
bitandblack-helpers v0.2.3
Helpers
Useful functions for JS you may like.
Installation
This library is made for the use with Node. Add it to your project by running $ npm install bitandblack-helpers or $ yarn add bitandblack-helpers.
Use
There are useful functions to handle:
Arrays
arrayAddOrRemoveAdds an element to an array if it's not part of it, or removes an element if it is already set.getElementsUnifiedPushes items into an array and returns a unified one.recurseRuns a function on an input, no matter if it's a string or an array.
Functions
runOnceCalls a function only once for a given time. When the time is over, the function may be called again.
Strings
stringToBoolean. Converts the input to boolean if possible.
Help
If you have any questions, feel free to contact us under hello@bitandblack.com.
Further information about Bit&Black can be found under www.bitandblack.com.