1 2 3 4 5 6 7 8 9 10
function pos (arr) { // http://jsphp.co/jsphp/fn/view/pos // + original by: Brett Zamir (http://brett-zamir.me) // % note 1: Uses global: php_js to store the array pointer // - depends on: current // * example 1: transport = ['foot', 'bike', 'car', 'plane']; // * example 1: pos(transport); // * returns 1: 'foot' return this.current(arr); }
There are no comments yet, be the first!