mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-11 16:24:31 +00:00
parent
41287d7859
commit
f217451fc5
@ -35,9 +35,7 @@ exports.trim = function(str) {
|
|||||||
Return the number of keys in an object
|
Return the number of keys in an object
|
||||||
*/
|
*/
|
||||||
exports.count = function(object) {
|
exports.count = function(object) {
|
||||||
var s = 0;
|
return Object.keys(object || {}).length;
|
||||||
$tw.utils.each(object,function() {s++;});
|
|
||||||
return s;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user