javascript 練習題目答案2

https://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb3000/001450372452505599881a3debd4becbe1591a94950fbb8000spa

的答案3d

答案1code

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));
});
相關文章
相關標籤/搜索