How to use the isFinite function from underscore
Find comprehensive JavaScript underscore.isFinite code examples handpicked from public code repositorys.
GitHub: mycoboco/quokka
101 102 103 104 105 106 107 108 109 110 111 112
// n = max length of extension global.extension = function (name, n) { var i; assert(_.isString(name)); assert(_.isUndefined(n) || _.isFinite(n)); i = name.lastIndexOf('.'); if (i < 0 || i === 0 || (n > -1 && name.length-i-1 > n)) i = name.length;
0
1
2
underscore.keys is the most popular function in underscore (11266 examples)