3 ms·
'in' operator follows `contain` idiom for collections. 1 in [1,2,3] -> true "foo" in {foo:1,bar:2} -> true Real namespaces: namespace Foo
by c-smile 8y ago
'in' operator follows `contain` idiom for collections.
1 in [1,2,3] -> true
"foo" in {foo:1,bar:2} -> true
Real namespaces:
namespace Foo
{
function a() { return "a"; }
function b() { return a(); } // Foo.a() call
}
namespace Key { // enums
const ENTER = 13;
const SPACE = 32;
}
if( evt.keyCode == Key.ENTER )
...