Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- 'use strict';
- if(!Object.prototype.getType) {
- Object.prototype.getType = function (obj) {
- if(obj === undefined) return 'Undefined';
- if(obj === null) return 'Null';
- var typeString = Object.prototype.toString.call(obj);
- return typeString;
- };
- }
- })();
- Object.getType(state);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement