function indexOf (arr, obj) {
    for (var i = 0, l = arr.length; i < l; i++) {
        if (arr[i] === obj || (obj.$value && arr[i].$value === obj.$value)) {
            return i
        }
    }
    return -1
}
/**
 *  Find an object or a wrapped data object
 *  from an Array
 */
Find an object or a wrapped data object
from an Array
Find an object or a wrapped data object from an Array
function indexOf (arr, obj) {
    for (var i = 0, l = arr.length; i < l; i++) {
        if (arr[i] === obj || (obj.$value && arr[i].$value === obj.$value)) {
            return i
        }
    }
    return -1
}
function indexOf ( arr , obj ) { for ( var i = 0 , l = arr . length ; i < l ; i ++ ) { if ( arr [ i ] === obj || ( obj . $value && arr [ i ] . $value === obj . $value ) ) { return i } } return - 1 }
Find an object or a wrapped data object
  from an Array
Find an object or a wrapped data object from an Array