Created
June 4, 2014 11:05
-
-
Save Bondifrench/2c72a1244c3744bbae04 to your computer and use it in GitHub Desktop.
Filter function in Javascript
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
var bracket = []; | |
for (var d=0; d<list.length;d++){ | |
if (path.extname(list[d]) === ".".concat(ext)) { | |
bracket.push(list[d]); | |
} | |
} | |
//bracket = list.filter(function (d) { | |
// return path.extname(d) === ".".concat(ext); | |
//}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment