Skip to content

Instantly share code, notes, and snippets.

@phoetry
phoetry / LICENSE.txt
Created December 2, 2011 12:07 — forked from 140bytes/LICENSE.txt
Cross-browser Array.prototype.unique
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@phoetry
phoetry / annotated.js
Created December 5, 2011 14:18
Array.prototype.indexOf
[].indexOf||(Array.prototype.indexOf=function(a,b,t,l){
for(t=this,l=t.length,b=(b=b|0)<0?l+b:b;i<l;i++)
if(t[i]===a)return i;
return-1
})
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE