Merge pull request #1047 from anandpdoshi/anand-mar-13
frappe.utils.all
This commit is contained in:
commit
1aeb843b58
1 changed files with 9 additions and 0 deletions
|
|
@ -203,6 +203,15 @@ frappe.utils = {
|
|||
return arr;
|
||||
},
|
||||
|
||||
all: function(lst) {
|
||||
for(var i=0, l=lst.length; i<l; i++) {
|
||||
if(!lst[i]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
dict: function(keys,values) {
|
||||
// make dictionaries from keys and values
|
||||
var out = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue