javascript 练习题目答案2
https://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb3000/001450372452505599881a3debd4becbe1591a94950fbb8000
的答案
答案1
var r1 = _.every(obj, function (value, key) { return !(/[A-Z]/.test(value + key)); }); var r2 = _.some(obj, function (value, key) { return !(/[A-Z]/.test(value + key)); });
不对之处欢迎指正