Created
March 24, 2015 21:36
-
-
Save julienetie/4d48dcc2716fd868b534 to your computer and use it in GitHub Desktop.
Get strings From Array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get strings From Array | |
Array.prototype.getArrayStrings = function () { | |
var _this = this; | |
for (var i = _this.length; i--;) { | |
if (typeof (_this[i]) !== 'string') _this.splice(i, 1); | |
} | |
return _this; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment