Skip to content

Instantly share code, notes, and snippets.

View makeusabrew's full-sized avatar
💭
I may be slow to respond.

Nick Payne makeusabrew

💭
I may be slow to respond.
View GitHub Profile
@makeusabrew
makeusabrew / .gitignore
Created March 11, 2011 14:30
i just wanted to fork this mother. and everyone loves typoeof
event-proxy.js
groupable-model.js
test.html
/**
* Determine whether the supplied value's datatype is Number
* @param {Mixed} value Could be a true number: 123, 12.00, or eg: "123", "12.00"
* @return {Boolean} Whether value's type is Number, eg: "123" would be false whereas 123 would be true.
*/
function isNumber(data)
{
var num = parseFloat(data);
return ! isNaN(parseFloat(data)) && num.toString() === data.toString();
}