1.0.0 • Published 9 years ago

of v1.0.0

Weekly downloads
177
License
ISC
Repository
github
Last release
9 years ago

##of

type checking

check type of value. returns capitalised name of type. e.g., 'Object', 'Function', 'Array':

of.type(value);

returns true if value is an element, otherwise false:

of.element(value);

returns true if value is a string, otherwise false:

of.string(value);

returns true if value is an array, otherwise false:

of.array(value);

returns true if value is an object, otherwise false:

of.object(value);

returns true if value is a function, otherwise false:

of['function'](value);

returns true if value is a boolean, otherwise false:

of.boolean(value);

returns true if value is a number, otherwise false:

of.number(value);

returns true if value is undefined, otherwise false:

of['undefined'](value);

returns true if value is an arguments array, otherwise false:

of['arguments'](value);

returns true if value is a regex, otherwise false:

of.regex(value);

returns true if value is null, otherwise false:

of['null'](value);

returns true if value is a date object, otherwise false:

of.date(value);
1.0.0

9 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago