commit by magit in emacs@2022-09-12 12:35:06

This commit is contained in:
Aborn Jiang 2022-09-12 12:35:07 +08:00
parent 4948ae1ad3
commit 04ee6c9d6b
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,7 @@
// 判断是否为字符串
typeof '' === 'string';
// 判断字符串是否包含子串,区分大小写
'Blue Whale'.includes('blue'); // returns false
'blue ss'.indexOf('blue');