add string `starsWith` method

This commit is contained in:
Brandon Lawrence 2018-05-11 12:14:59 -04:00 committed by GitHub
parent e10acfa677
commit ca767113f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

1
es6.md
View File

@ -68,6 +68,7 @@ See: [Binary and octal literals](https://babeljs.io/learn-es2015/#binary-and-oct
```js ```js
"hello".repeat(3) "hello".repeat(3)
"hello".includes("ll") "hello".includes("ll")
"hello".startsWith("he")
"\u1E9B\u0323".normalize("NFC") "\u1E9B\u0323".normalize("NFC")
``` ```