Last active
July 15, 2016 22:38
-
-
Save pablohpsilva/4a51f52cbfc62fa0695b17c2068718ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.filter('formatResult', function(value, functionArray){ | |
if (functionArray) { | |
let rList = value, | |
aux = []; | |
for (let i = 0, total = functionArray.length; i < total; i++) { | |
aux = [rList].concat((functionArray[i]).args); | |
rList = (functionArray[i]).func.apply(null, aux); | |
} | |
return rList; | |
} | |
return value; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment