xml2customjs
Version:
Library to custom convert an XML into a Javascript object or JSON
10 lines (9 loc) • 395 B
TypeScript
/**
* This function receives a value of type any and returns it converted to an array
* Is the value is an object with only one prop and the param convertNested is set
* to true (default value), then the returned array will be that
* prop value converted to array
* @param value
* @returns array
*/
export declare function convertValueToArray(value: any, convertNested?: boolean): any[];