mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 21:16:21 +00:00
189 B
189 B
id | title |
---|---|
cc0d1937-ec92-4a2f-802d-f5fbde4e61b2 | JavaScript RegExp Search Method |
console.log(" word".search(/\S/)); // 2
console.log(" ".search(/\S/)); // -1