This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
frappe.utils.all
version-14
Anand Doshi
10 years ago
parent
8315d4e756
commit
5e3de09b0e
1 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
frappe/public/js/frappe/misc/utils.js
+ 9
- 0
frappe/public/js/frappe/misc/utils.js
View File
@@ -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 = [];
Write
Preview
Loading…
Cancel
Save