GigglyBobble@kbin.socialtoToday I Learned@lemmy.world•TIL About How 11 Lines of Code Supported Web Development and the Code Was Deleted It Broke the Internet
11·
9 months agoAnd the whole implementation of is-number which is at version 7.0.0:
module.exports = function(num) {
if (typeof num === 'number') {
return num - num === 0;
}
if (typeof num === 'string' && num.trim() !== '') {
return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
}
return false;
};
The node.js ecosystem has always been madness.
Calendar app devs will love the migration project.