Breed
About
Breed is a Helper Module which makes working with types and typeof as easy as it should be.
You are even able to extend Breed with your own Functions.
You can find the complete Documentation here
Install the module with: npm install breed
var breed = require('breed');
function Person () {}
breed.register(Person);
breed.isObject(new Person()); // true
breed.isPerson(new Person()); // true
breed.isArray(new Person()); // false
breed.isntPerson(new Person()); // false
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt:
- Available Tasks:
- jshint
- nodeunit
- default (jshint + nodeunit)
Release History
-
0.3.1
-
0.3.0
- Refactor for more performance
-
0.2.1
-
0.2.0
- Implement JSON, NaN, Finite
- author breed.register()
- rename breed.get() to breed.is()
License
Copyright (c) 2013 Bastian Behrens
Licensed under the MIT license.