Function stringify

  • Returns the string representation of the {value}, i.e.:

    import { stringify } from '@amjs/js-utils';
    console.log(stringify({ key: 'value' })); // '{"key":"value"}'

    Parameters

    • value: any

      To transform

    Returns string

    String representation of {value}

    Error If values equals 'null' or 'undefined'