Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit ed85f9c8d938e12a1fc12347209aa47c5f70c262 @matthewmueller committed Dec 8, 2012
Showing with 53 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. 0 History.md
  3. +11 −0 Makefile
  4. +20 −0 Readme.md
  5. +13 −0 component.json
  6. +7 −0 index.js
2 .gitignore
@@ -0,0 +1,2 @@
+components
+build
0 History.md
No changes.
11 Makefile
@@ -0,0 +1,11 @@
+
+build: components index.js
+ @component build --dev
+
+components: component.json
+ @component install --dev
+
+clean:
+ rm -fr build components template.js
+
+.PHONY: clean
20 Readme.md
@@ -0,0 +1,20 @@
+
+# isObject
+
+ check if an object is an object
+
+## Installation
+
+ $ component install matthewmueller/isObject
+
+## Example
+
+```js
+isObject([]) // false
+isObject(new Date()) // false
+isObject({}) // true
+```
+
+## License
+
+ MIT
13 component.json
@@ -0,0 +1,13 @@
+{
+ "name": "isObject",
+ "repo": "matthewmueller/isObject",
+ "description": "check if an variable is an object",
+ "version": "0.0.1",
+ "keywords": [],
+ "dependencies": {},
+ "development": {},
+ "license": "MIT",
+ "scripts": [
+ "index.js"
+ ]
+}
7 index.js
@@ -0,0 +1,7 @@
+/**
+ * Export `isObject`
+ */
+
+module.exports = function(obj) {
+ return obj.constructor == Object;
+};

0 comments on commit ed85f9c

Please sign in to comment.