Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Oh, yes. Should be
if (-1 !== index)
Thank you(=
In most cases you don't want to do that. If function relay on
this
in its body (which is equal towindow
unless function defined in object or"use strict";
is used) you probably will encounter some side effects :) It's safer to passnull
and usebind
if you need to keep function's current context.Perhaps an example will make it clear:
[].slice
will create new object andArray.prototype.slice
don'tif (-1 !== handler)
will always run codepropKey goes to global