Created
March 13, 2015 19:16
-
-
Save AdamMadrzejewski/10cef463f9bb5752b645 to your computer and use it in GitHub Desktop.
Slice a string with .map and .call
This file contains hidden or 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 map = Array.prototype.map; | |
var result = map.call("Hello World", function(x) { return x; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment