Utility TypeScript @ 2.0.0-beta.2
    Preparing search index...

    Utility TypeScript @ 2.0.0-beta.2

    Documents

    ReadMe
    Changelog
    MIT License

    Functions

    arrayUnique

    Uses Array.filter() to create a unique array.

    escRegExp

    Escapes a string for use in a regular expression.

    escRegExpReplace

    Escapes a string for use as a replacement for a regular expression.

    hasIterator

    Tests if the given object has an iterator function.

    isObjectEmpty

    Checks whether an object is empty (by checking for keys and constructor).

    makeNumber

    Makes any input a number if it can be made into a valid number (e.g., by parsing a string).

    makeNumberAsync

    Makes any input a number if it can be made into a valid number (e.g., by parsing a string).

    mapToObject

    Converts a Map (and any of its Map children, recursively) to a simple object.

    mapToObjectAsync

    Converts a Map (and any of its Map children, recursively) to a simple object.

    mergeArgs

    Returns an updated version of defaults merged with the contents of inputs.

    mergeArgsAsync

    Returns an updated version of defaults merged with the contents of inputs.

    objectFlatten

    Returns a single-level object record with kebab/snake/etc. case keys based on nested object keys.

    objectFlattenAsync

    Returns a single-level object record with kebab/snake/etc. case keys based on nested object keys.

    objectKeySort

    Sorts a record object according to its keys and returns a sorted copy.

    objectKeySortAsync

    Sorts a record object according to its keys and returns a sorted copy.

    objectMap

    A utility to map the values of an object using a callback function.

    objectMapAsync

    Maps a single-level object's properties to new values based on a callback function.

    slugify

    Turns the given slug into a string with only a-z, 0-9, and hyphens.

    softWrapText

    Takes an input string and inserts \n to soft wrap text within the given width.

    timestamp

    Formats a date in a predictable way.

    toTitleCase

    Converts the given string to title case.

    typeOf

    An alias for the typeof keyword that returns additional options.

    Classes

    MessageMaker

    A configurable class for formatting message strings for various outputs.

    VariableInspector

    Inspects the value of a variable for debugging.

    Namespaces

    objectFlatten

    Utilities for the objectFlatten function.

    timestamp

    Used only for timestamp().

    typeOf

    Used only for typeOf().

    MessageMaker

    Used only for MessageMaker.

    VariableInspector

    Used only for VariableInspector.

    Modules

    node

    Utilities specific to the Node environment.

    types

    Exports all global types (no JavaScript).