Overhaul
Type Checking, Formatting, Annotations, & more
Table of Contents
Quick Start
const oh = ; let format = ohobject id: ohrequiredtoStringdescription"User Id" state: oh age: ohintegerdeprecated filter: ohobject start: ohtoNumber end: ohnumber ; let req = formatvalue id: 123 age: 15 filter: start: "100"; // req === { id: '123', age: 15, state: 'WA', filter: { start: 100, end: 5000 } }
Usage
Constructor
Value
Register
Definition
Serialize
Definitions
Types
Arguments
Array
Boolean
Date
Element
Empty
Error
Finite
Instance
NaN
Null
Number
Object (Plain Object)
//Shortcutohobjectid: ohstringfilter: ohobjectstart: ohnumberend: ohnumber// Is equivalent to:ohobjectid: ohstringfilter:start: ohnumberend: ohnumber// oh.object is implied if inner key value is a plain object
RegExp
String
Undefined
Traversals
Copy
Delete
Index
Key
Move
Parent
Sibling
Modifiers
Default
Freeze
Noop
Parse
Required
Stringify
Annotations
Example
Description
Deprecated
Lodash
Installation
npm install --save overhaul
License
overhaul is licensed under the MIT license.