bemoje


Benjamin Møller Jensen

  • Returns array of node-js commandline arguments

    published 1.0.1 4 years ago
  • Swap array elements in place. Runtime: O(1)

    published 1.0.2 4 years ago
  • Sort array by bubbling up bigger values to the right side. Runtime: O(n^2)

    published 1.1.1 4 years ago
  • Shallow clone of provided array, 'arr'.

    published 1.0.2 4 years ago
  • Remove an element in place from an array, if present.

    published 2.0.1 4 years ago
  • Immnutably remove an element from an array if it is present.

    published 1.0.1 4 years ago
  • Returns true if the predicate is satisfied for every element of the passed array; otherwise false.

    published 1.2.1 4 years ago
  • Returns true if the argument is a function; false otherwise.

    published 1.0.1 4 years ago
  • Returns true if the argument is a string; false otherwise.

    published 1.0.1 4 years ago
  • Return the first element of an array where the callback returns true.

    published 1.0.2 4 years ago
  • Return the index of the first element of an array where the callback returns true. Returns -1 if none do.

    published 1.0.1 4 years ago
  • Iterate an array in reverse.

    published 1.1.1 4 years ago
  • Retrieve all elements in provided indexes array.

    published 1.0.1 4 years ago
  • Returns true if the element exists in the array

    published 1.0.1 4 years ago
  • Returns all indexes at which an element is found.

    published 1.0.3 4 years ago
  • Sorting by insertion - Look for bigger numbers on the left side. Runtime: O(n^2). It starts from the 2nd element, and it tries to find any element (to the left) that could be bigger than the current index. It will move all the elements that are bigger and

    published 1.0.1 4 years ago
  • Determine whether an array is empty

    published 1.0.1 4 years ago
  • Return the last element of an array where the callback returns true.

    published 1.0.2 4 years ago
  • Linear-time Partitioning. Runtime: O(n). Chooses a pivot and re-arrages the array so that everything on the left is <= pivot and everything on the right is > pivot

    published 1.0.1 4 years ago
  • Efficient in-place recursive sorting algorithm of numeric values. Avg. Runtime: O(n log n) | Worst: O(n^2)

    published 1.0.1 4 years ago
  • Selection sort array

    published 1.0.1 4 years ago
  • Shuffle items in an array in-place. Runtime: O(n)

    published 1.0.1 4 years ago
  • Check whether a condition is true for any element of an array. The condition check is in the form of a callback.

    published 1.0.1 4 years ago
  • Get an object property, with dot-notation support for deeply nested properties.

    published 2.0.1 4 years ago
  • Pre-computed powers of 10

    published 1.0.1 4 years ago
show more packages