Closed mathiasbynens closed 7 years ago
Set#has runs in O(1) time whereas Array#includes runs in O(n) time.
Set#has
O(1)
Array#includes
O(n)
Glad this could be achieved without compromising brevity. Thanks!
Changes are live.
Set#has
runs inO(1)
time whereasArray#includes
runs inO(n)
time.