We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a59c9f2 commit 5cb73d5Copy full SHA for 5cb73d5
filter-random.js
@@ -0,0 +1,8 @@
1
+/**
2
+ * Return a random item in a supplied array
3
+ * @param {array} array
4
+ * @return {item}
5
+ */
6
+PolymerExpressions.prototype.random = function(array){
7
+ return array[Math.floor(Math.random() * array.length)];
8
+}
0 commit comments