lamansky


John Lamansky

  • The Type Conversion Library. Numbers, Strings, Arrays, Maps, Objects, and Iterators.

    published version 3.0.0, 5 years ago
  • Tests a value’s type against a string like 'positive integer' or 'non-empty map'.

    published version 1.1.0, 7 years ago
  • Performs a multi-level three-way comparison on numbers/strings and returns 1, 0, or -1.

    published version 2.1.0, 7 years ago
  • Uses one or more keys to locate and set a value in a Map, Object, or other keyed collection. Supports nesting, loose key matching, and more.

    published version 2.0.0, 7 years ago
  • Creates an Object from a collection of key-value pairs or key-descriptor pairs.

    published version 4.0.0, 5 years ago
  • Custom ESLint configuration. Extends Standard.

    published version 2.0.0, 5 years ago
  • Converts data to JSON if possible, or else returns a fallback value.

    published version 1.0.0, 8 years ago
  • Applies a callback to each key-value pair of a Map or Object.

    published version 3.1.0, 6 years ago
  • For patching a property descriptor, including replacing getters/setters.

    published version 1.0.0, 8 years ago
  • Wraps around a function and suppresses its errors.

    published version 1.0.0, 8 years ago
  • Returns a copy of a Map object containing only those entries which pass a test function.

    published version 3.1.0, 7 years ago
  • Wraps a function and caches its return values.

    published version 1.0.0, 8 years ago
  • Validates and returns a function’s prototype.

    published version 1.0.0, 8 years ago
  • Extends one class with methods from another.

    published version 1.1.0, 7 years ago
  • Returns an object’s class and its ancestors.

    published version 1.0.0, 8 years ago
  • Returns true if an array has duplicate elements or a string has duplicate characters.

    published version 1.0.0, 8 years ago
  • For a given class, returns an array with its parent class, the parent’s parent, and so on.

    published version 1.0.1, 8 years ago
  • Returns the index of the first instance; when called a second time, returns the index of the second instance; and so on. Works with arrays and strings.

    published version 1.0.0, 8 years ago
  • Remove duplicate array elements or string characters.

    published version 1.0.0, 8 years ago
  • Checks that specific array elements or string characters appear only in a certain order.

    published version 1.0.0, 8 years ago
  • Wraps around an array or string and transforms certain methods into case-insensitive versions.

    published version 1.0.0, 8 years ago
  • Defines fallback behavior in case a variable is not a function. Perfect for optional callback parameters.

    published version 1.0.1, 8 years ago
  • Removes a string from the beginning of another string.

    published version 2.0.0, 7 years ago
  • Checks if an object has a property with a defined setter function.

    published version 1.0.0, 8 years ago
  • Checks if an object has a property with a defined getter function.

    published version 1.0.0, 8 years ago
show more packages