
export function searchByAll (array, searchField) {
  return array.filter(obj => {
    return Object.keys(obj).reduce((pre, key) => {
      return (typeof obj[key] === 'string') ? (pre || obj[key].search(makeRegExp(searchField)) !== -1) : true
    }, false)
  })
}

function makeRegExp (searchField) {
  return new RegExp(searchField.split('*').join('.*'), 'i')
}

@@ -236,11 +236,10 @@
 ) : 
-tru
+pr
 e%0A  

Correct search function for searching objects with non sting vars