Possible Duplicate:
What's wrong with var x = new Array();
if (!Number.prototype.toZeroPaddedString) {
Number.prototype.toZeroPaddedString = function (count) {
"use strict";
var str = this.toString();
return (new Array(count + 1 - str.length)).join('0') + str;
};
}
I want my code to be clean by jsLint standards, however, I just cannot imagine how to get rid of this error given what I want to do.
Any advice?
Thanks.