4 ms·
It's also straight forward to implement in python. It is common enough to be standard so people won't reinvent the wheel. And it should be available to people l
by amitport 5y ago
It's also straight forward to implement in python. It is common enough to be standard so people won't reinvent the wheel. And it should be available to people learning the language before they learn generators.
Array.prototype.indexOf is also pretty simple as are many core functions.