0.1.0 • Published 10 years ago

sak-isobject v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

Sak-isobject

Version 0.1.0

Utility for testing if a variable is a object

Created by Thomas de Zeeuw, thomasdezeeuw@gmail.com (https://thomasdezeeuw.nl/).

Released under a MIT license.

Exports

IsObject

Function

Test if an variable is an object.

Example

var obj1 = {a: 'a'}
  , obj2 = 'not an object';

var test1 = isObject(obj1)
  , test2 = isObject(obj2);
console.log('test1', test1) // test1 true
console.log('test2', test2) // test2 false

Params

NameDescriptionType
objVariable that might be an objectObject

Return

DescriptionType
Whether or not it's an object.Boolean