mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Fixin some leftovers bb7c959.
This commit is contained in:
committed by
John-David Dalton
parent
f983ff2b7c
commit
351e44a127
@@ -20,7 +20,7 @@
|
|||||||
* endsWith('abc', 'b', 2)
|
* endsWith('abc', 'b', 2)
|
||||||
* // => true
|
* // => true
|
||||||
*/
|
*/
|
||||||
function endsWith(string, target, position) {)
|
function endsWith(string, target, position) {
|
||||||
const { length } = string
|
const { length } = string
|
||||||
position = position === undefined ? length : +position
|
position = position === undefined ? length : +position
|
||||||
if (position < 0 || position != position) {
|
if (position < 0 || position != position) {
|
||||||
|
|||||||
Reference in New Issue
Block a user