Espruino/tests/test_array_join.js
2014-04-07 12:56:55 +01:00

8 lines
200 B
JavaScript

// test for array join
var a = [1,2,4,5,7];
// https://github.com/espruino/Espruino/issues/289
var b = ["true", undefined, true, null];
result = a.join(",")=="1,2,4,5,7" && b.join()=="true,,true,";