0.1.0 • Published 10 years ago
sak-isobject v0.1.0
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
Name | Description | Type |
---|---|---|
obj | Variable that might be an object | Object |
Return
Description | Type |
---|---|
Whether or not it's an object. | Boolean |
0.1.0
10 years ago