bit/utils

PublicMIT

General purpose Javascript utility functions delivering modularity and performance.

6 Likes

    array

    Computes the difference between two array references.

    8
    MIT
    4
    14

    Builds a new collection by applying a function to all elements of
    this array and using the elements of the resulting collections.

    9
    MIT
    3
    5

    Returns the first element of an array.

    7
    MIT
    4
    7

    Wraps a value with an array.

    5
    MIT
    4
    4

    object

    Determines whether the object has the specified property.

    3
    MIT
    3
    0

    Invoke a function for every key within given object or array.

    3
    MIT
    2
    2

    Cleans all object’s properties that contains a falsy value
    and returns a new object without them.

    3
    MIT
    2
    0

    get all object values.

    5
    MIT
    1
    126

    Merges multiple objects into one

    4
    MIT
    2
    28

    merge an array of objects

    4
    MIT
    1
    13

    Creates a new object by recursively evolving a shallow copy of object,
    according to the transformation functions.

    6
    MIT
    2
    4

    Creates an object composed of keys generated from the results of running
    each element of collection thru iteratee.

    4
    MIT
    3
    11

    Returns the results of applying the iteratee to each element of the object.

    5
    MIT
    1
    7

    global

    determines whether obj reference is empty (empty array, empty object and/or falsy values)

    5
    MIT
    2
    2

    determiens whether val is a number.

    4
    MIT
    1
    31

    detemines whether str is a string.

    7
    MIT
    1
    86

    encrypt data buffer or string into a sha1 hash

    6
    MIT
    1
    3.2K

    determines whether val reference is null or undefined.

    3
    MIT
    1
    121

    pad a string to the left.

    5
    MIT
    1
    4

    string

    determines whether string str ref contains substring searchRef.

    4
    MIT
    1
    3.8K

    cleans the first occurence of char from str reference.

    3
    MIT
    1
    3

    encode a string or a buffer to base64

    4
    MIT
    1
    4.9K

    remove all new lines from a string (do not mutate the string but return new instance)

    4
    MIT
    1
    2

    decode a string from base64

    4
    MIT
    1
    2

    validator

    simple email validator

    3
    MIT
    1
    22

    redis

    Returns a Promise resolved with the values associated with the specified fields in the hash stored at key.

    3
    MIT
    2
    7

    Returns a Promise resolved with the values associated with the specified fields in the hash stored at key.

    3
    MIT
    1
    66

    buffer

    A ponyfill for Buffer.

    4
    MIT
    16
    0

    bit

    an ssh client for consuming bit components from a remote scope

    4
    MIT
    1
    3

    ssh

    4
    MIT
    1
    13

    function

    compose functions into one function from right to left

    4
    MIT
    1
    27

    compose functions from left to right

    4
    MIT
    1
    6

    kubernetes

    Convert bit id to acceptable kubernetes job name

    4
    MIT
    1
    10

    number

    Returns a number whose value is limited to the given range.

    4
    MIT
    2
    247