var a = Array.prototype.map.call("Hello World", function(x) { return x.charCodeAt(0); }) // a now equals [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]