1.0.1 • Published 3 months ago

valuetotype-module v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

Value to types module

Description

Function accepts an object and then returns an object in which fields are types and values are the amount of data of this type in the object-argument. If there is no data of a certain type in the source object, it will not be present in the resulting object.

Examples

Source object: { test: 134 }
Resulting object: { number: 1 }
Source object: { test: undefined, anotherField: [], yetAnother: [undefined] }
Resulting object: { undefined: 1, array: 2 }
Source object: { test: undefined, anotherField: [], undefined: null }
Resulting object: { undefined: 1, array: 1, null: 1 }
1.0.1

3 months ago

1.0.0

3 months ago