Diversen
This commit is contained in:
@@ -52,14 +52,17 @@ dbo.helpers = {
|
||||
},
|
||||
|
||||
findArrayElement: function ( toFind, element, value, array ) {
|
||||
console.log( array );
|
||||
// console.log( toFind );
|
||||
// console.log( element );
|
||||
// console.log( value );
|
||||
// console.log( array );
|
||||
if ( !Array.isArray( array ) ) return null;
|
||||
console.log( value );
|
||||
|
||||
var foundValue = null
|
||||
$.each( array, function ( i, p ) {
|
||||
if ( p[toFind] == value ) foundValue = p[element];
|
||||
} );
|
||||
console.log( foundValue );
|
||||
// console.log( foundValue );
|
||||
return foundValue;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user