Function objectFrom

  • Convert any item, be that a Resource or Collection to a plain Object or Array. On conversion HAL-related properties (_client, _links, _embedded) are not included in the resulting object. Primitive types as well as null or undefined are returned unchanged. If the argument is an array, every item of the returned array is converted recursively. For Collection it returns the array of values where each item is converted recursively.

    Parameters

    • item: any

      the item to convert

    Returns any

    an object, array, primitive value, undefined or null

Generated using TypeDoc