Resources/public/js/editor/dist/step-editor.js
/**
 * Create and return an object which contains all elements for which the callback returns true
 *
 * @param {object} object
 * @param {function} callable
 *
 * @return {object}
 */
Create and return an object which contains all elements for which the callback returns true
@param {object} object
@param {function} callable

@return {object}
Create and return an object which contains all elements for which the callback returns true @param { object } object @param { function } callable @return { object }
function filterObject (object, callable) {
  var filteredObject = {};
  for (var property in object) {
    if (object.hasOwnProperty(property)) {
      if (callable(object[property])) {
        filteredObject[property] = object[property];
      }
    }
  }
  return filteredObject;
}
function filterObject ( object , callable ) { var filteredObject = { } ; for ( var property in object ) { if ( object . hasOwnProperty ( property ) ) { if ( callable ( object [ property ] ) ) { filteredObject [ property ] = object [ property ] ; } } } return filteredObject ; }
Create and return an object which contains all elements for which the callback returns true
 @param {object} object
 @param {function} callable
Create and return an object which contains all elements for which the callback returns true @param { object } object @param { function } callable