Create join_array_like_objects.md

This commit is contained in:
Meet Zaveri
2017-12-13 21:42:58 +05:30
committed by GitHub
parent a42d7ebe48
commit b4668466a5

View File

@ -0,0 +1,11 @@
### Joining an array-like object
The following example joins array-like object (arguments), by calling Function.prototype.call on Array.prototype.join.
```
function f(a, b, c) {
var s = Array.prototype.join.call(arguments);
console.log(s); // '1,a,true'
}
f(1, 'a', true);
```