Skip to content

take

take(target, amount)

Takes the first amount characters from target string.

ts
take("hello world", 5); // "hello"
ts
pipe("hello world", take(5)); // "hello"