kataan 0.0.4

A high-performance JavaScript engine written in pure Rust. Library, C FFI, and CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/*---
description: String unicode, code points, and iteration
esid: sec-string-objects
---*/
assert.sameValue("café".length, 4);
assert.sameValue("abc".length, 3);
assert.sameValue([..."abc"].length, 3);
assert.sameValue("abc".codePointAt(0), 97);
assert.sameValue(String.fromCodePoint(97, 98), "ab");
assert.sameValue("Hello".split("").reverse().join(""), "olleH");
assert.sameValue("  x  ".trimStart(), "x  ");
assert.sameValue("  x  ".trimEnd(), "  x");