Function: pos version 66

Function:
Description: Alias of current()
Version:
Status: latest
Date: 2011-12-20 04:41
Summary: Import from phpjs.
Programmer: jj5
Code
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);
}
[top]

Comments

There are no comments yet, be the first!

Please Login or Register to post comments.