-
-
Save ilearnjavascript/54c664df941ea7368ddac807de5b6925 to your computer and use it in GitHub Desktop.
es6 - new methods - 13.js
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
Array.from("string"); | |
// outputs: ["s", "t", "r", "i", "n", "g"] | |
Array.from(document.querySelectorAll('img')).filter(function (image) { | |
return image.src.endsWith('.png') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment