techfort / PowerArray

Boosted Performance Array
247 stars 16 forks source link

Updated `contains` to `includes` #21

Closed amsul closed 9 years ago

amsul commented 9 years ago

The proposal for a contains method has been changed to includes. So I've updated the method for PowerArrays as well.

Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes

:)

techfort commented 9 years ago

Thanks for that. To make sure the lib doesn't break on users who already adopted contains i will create an alias of includes.