0.2.3 • Published 7 months ago

bitandblack-helpers v0.2.3

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
7 months ago

Codacy Badge npm version

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

    • arrayAddOrRemove Adds an element to an array if it's not part of it, or removes an element if it is already set.
    • getElementsUnified Pushes items into an array and returns a unified one.
    • recurse Runs a function on an input, no matter if it's a string or an array.
  • Functions

    • runOnce Calls 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.

0.2.1

7 months ago

0.2.0

7 months ago

0.2.3

7 months ago

0.2.2

7 months ago

0.1.0

2 years ago

0.0.0

3 years ago