@hywax/std-types
v3.0.0
Published
Extended types for standard library JS
Downloads
2
Readme
STD Types
Extended types for standard library JS.
Installation
# Using pnpm
pnpm add @hywax/std-types
# Using yarn
yarn add @hywax/std-types
# Using npm
npm install @hywax/std-types
Usage
Create a std-types.d.ts
file in your project with these contents:
import '@hywax/std-types'
// or
import '@hywax/std-types/objects'
import '@hywax/std-types/json'
Types
Objects:
keys
- returns an array of a given object's own enumerable string-keyed property names.entries
- returns an array of a given object's own enumerable string-keyed property key-value pairs
JSON:
parse
- constructing the JavaScript value or object described by the string.