Explorar el Código

EAGLESIX-2716: wrote setToArray in Helpers.js

Jake Delaney hace 11 años
padre
commit
b8eb855e4c
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      lib/pipeline/expressions/Helpers.js

+ 10 - 0
lib/pipeline/expressions/Helpers.js

@@ -11,5 +11,15 @@ module.exports = {
 		});
 
 		return set;
+	},
+
+	setToArray: function setToArray(set){
+		var array = [];
+
+		Object.keys(set).forEach(function (key) {
+			array.push(set[key]);
+		});
+
+		return array;
 	}
 }