Skip to content

Commit

Permalink
Implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 28, 2015
1 parent 4fed9ef commit aedd91e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.js
@@ -0,0 +1,12 @@
'use strict';

var toStr = Number.prototype.toString;

module.exports = function isNumberObject(value) {
try {
toStr.call(value);
return true;
} catch (e) {
return false;
}
};

0 comments on commit aedd91e

Please sign in to comment.