Skip to content

Instantly share code, notes, and snippets.

View hufyhang's full-sized avatar

Feifei Hang hufyhang

View GitHub Profile
@hufyhang
hufyhang / forEach.js
Created December 27, 2015 15:33
JavaScript Array.prototype.forEach Polyfill
/*
* forEach Polyfill
*
* 2015-12-27
*
* By Feifei Hang, http://feifeihang.info
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
'use strict';
/*
* Object.watch shim
*
* 2015-12-26
*
* By Feifei Hang, http://feifeihang.info
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/