Useful functions for JS you may like.
This library is available for the use with Node. Add it to your project by running
$ npm install bitandblack-helpers or
$ yarn add bitandblack-helpers.
There are useful functions to handle:
arrayAddOrRemoveAdds an element to an array if it's not part of it, or removes an element if it is already set.
pushUniquePushes items into an array and uniques them.
runOnceCalls a function only once for a given time. When the time is over, the function may be called again.
If you have any questions, feel free to contact us under
Further information about Bit&Black can be found under www.bitandblack.com.