truthy-strings-keys
Resolves a simple string or a potentially deeply nested structure of primitive values into a simple string array.
Installation
$ npm install truthy-strings-keys
Usage
truthyStringsKeys( deepArray [, options] )
; truthyStringsKeysdeepArray;// ["foo", "bar", "foo", "qux", "garpley"] truthyStringsKeysdeepArray, ;// ["foo", "bar", "qux", "garpley"]
See the tests.
Testing
Run the following command:
$ npm test
This will build scripts, run tests and generate a code coverage report. Anything less than 100% coverage will throw an error.
Watching
For much faster development cycles, run the following commands in 2 separate processes:
$ npm run build:watch
Compiles TypeScript source into the ./dist
folder and watches for changes.
$ npm run watch
Runs the tests in the ./dist
folder and watches for changes.