Skip to content

Conversation

@RubenVerg
Copy link
Contributor

JS has an includes method on arrays instead of the deprecated indexOf() === -1, and drop works like slice (theoretically .dropRight(n) == .slice(0, -n))

JS has an `includes` method on arrays instead of the deprecated `indexOf() === -1`, and `drop` works like `slice` (theoretically `.dropRight(n)` == `.slice(0, -n)`)
Copy link
Member

@sjrd sjrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I wouldn't say that indexOf is deprecated, but the changes in the comments LGTM.

@sjrd sjrd merged commit 1807422 into scala-js:master Dec 9, 2020
@RubenVerg
Copy link
Contributor Author

RubenVerg commented Dec 9, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants