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

    Module functions

    Exports all the package's functions.

    0.1.0

    import { functions } from '@maddimathon/utility-typescript';
    import { ... } from '@maddimathon/utility-typescript/functions';

    Functions - Arg Objects

    mergeArgs

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

    Functions - Array Helpers

    arrayUnique

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

    Functions - Debuggers

    typeOf

    An alias for the typeof keyword that returns additional options.

    Functions - Escapers

    escRegExp

    Escapes a string for use in a regular expression.

    escRegExpReplace

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

    slugify

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

    Functions - Formatters

    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.

    Namespaces

    timestamp

    Used only for timestamp().

    typeOf

    Used only for typeOf().