mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-26 06:26:33 +00:00
Quartz sync: May 6, 2024, 10:40 PM
This commit is contained in:
parent
aee9145691
commit
4ef8371441
635 changed files with 22281 additions and 6 deletions
21
content/20201112095428-javascript_string_endswith_method.md
Normal file
21
content/20201112095428-javascript_string_endswith_method.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
id: 00b0d7a6-4222-47e3-a0c9-58f071fa404e
|
||||
title: JavaScript String endsWith Method
|
||||
---
|
||||
|
||||
# Introduction
|
||||
|
||||
Introduced in [ES6](20201030093404-es6)
|
||||
|
||||
# Syntax
|
||||
|
||||
``` javascript
|
||||
console.log('hello'.endsWith('ello')) // true
|
||||
console.log('hello'.endsWith('ello', 5)) // true
|
||||
```
|
||||
|
||||
# See also
|
||||
|
||||
- [startsWith](20201112095525-javascript_string_startswith_method)
|
||||
- [JavaScript String Prototype
|
||||
Methods](20201112095341-javascript_string_prototype_methods)
|
Loading…
Add table
Add a link
Reference in a new issue