This commit is contained in:
2018-01-31 11:10:17 +01:00
parent f3bf0c9f80
commit 05c165c9ed
27 changed files with 724 additions and 265 deletions
+6 -3
View File
@@ -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;
},