180.14K
total weekly downloads
152 packages
2
The Type Conversion Library. Numbers, Strings, Arrays, Maps, Objects, and Iterators.
3
Performs a multi-level three-way comparison on numbers/strings and returns 1, 0, or -1.
3fn
Creates a three-way comparison callback.
abstract-class
Prevents instantiation of a parent class. Optionally defines properties that must be implemented by child classes.
add-counter
Adds a counter integer to iterated values.
ascii-whitespace
A regular expression for ASCII/HTML whitespace, as defined by W3C and WHATWG.
barr
A collection of binary search functions for sorted arrays.
bfind
Runs a binary search on any sorted collection.
binsert
Uses binary search to insert a value into any sorted collection.
cached-function
Wraps a function and caches its return values.
can-delete-prop
Checks whether the delete operator can be used on an object property.
capitalized
Returns true if a string’s first letter is uppercase.
case-insensitive
Wraps around an array or string and transforms certain methods into case-insensitive versions.
catholic
Catholic liturgical calendar data
char-escape
Finds all instances of given characters in a string and inserts an escape sequence before each one.
char-unescape
Removes a given escape sequence from before characters in a string. Correctly handles double-escapes by only unescaping them once.
class-ancestors
For a given class, returns an array with its parent class, the parent’s parent, and so on.
class-chain
Returns an object’s class and its ancestors.
concat-each
Iterates nested loops and concatenates values onto an Array or Set.
conscript
The JavaScript parser for the Conscript condition-scripting language.
construct-map
Turns entries into a Map or other key-value collection.
copy-own
Copies an object’s own properties to another object.
deduplicate
Remove duplicate array elements or string characters.
def-props
Defines multiple object properties all at once, optionally with shared settings.
efn
Extracts a function. Gets an object method while preserving its binding.