1.0.0-alpha1 • Published 5 years ago

@tuft/json-stringify-array v1.0.0-alpha1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Node.js CI Coverage Status Known Vulnerabilities

Convert a JavaScript array object to a JSON string.

Install with npm

npm i -D @tuft/json-stringify-array

stringifyArray(arg: any[]): string

Usage

const { stringifyArray } = require('json-stringify-array');

const arr = [1, 'two', true, ['foo', 42], { hello: 'world' }];

stringifyArray(arr);  // "[1,"two",true,["foo",42],{"hello":"world"}]";
1.0.0-alpha1

5 years ago