value-to-type
v0.0.1
Published
Get schema from data, great for making quick assertions in integration tests.
Downloads
1
Readme
Value to Type
Install
npm install value-to-type
Usage
const valueToType = require('value-to-type');
valueToType('unicorns');
//=> 'string'
API
valueToType(value)
input
Type: any
For example:
[{rainbow: 'unicorns'}, {rainbow: 'cats'}]
Output:
[{rainbow: 'string'}]
License
MIT © Herman