2.0.20 • Published 4 years ago

@extra-string/left v2.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Return leftmost part of string.

This is part of package extra-string.

var left = require('@extra-string/left');
// left(<string>, <length>)

left('Thai Sweet Chilli Sauce', 4);  // 'Thai'
left('Thai Sweet Chilli Sauce', 10); // 'Thai Sweet'
left('Thai Sweet Chilli Sauce', 80); // 'Thai Sweet Chilli Sauce'
left('Thai Sweet Chilli Sauce', -1); // ''

extra-string

2.0.20

4 years ago

2.0.19

4 years ago

2.0.17

4 years ago

2.0.18

4 years ago

1.1.3

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago