AE
if (a) {
b();
}
пишут
a && b();
Size: a a a
AE
if (a) {
b();
}
a && b();
МП
if (a) {
b();
}
a && b();
L4
AE
L4
SS
const props = [['user', 'level'], ['user.level', 'access'], [null, null]];
const user = {
level: {
access: true
}
};
const hasAll = props.every(([obj, hasItem]) => {
if (!obj) {
return true;
}
return [obj].hasOwnProperty(hasItem);;
});
🦜
export default class MyClass...
module.exports = MyClass
L
if(isOpened = true) this.closeAnim()
?AE
L
L4
BQ
AE
AE
L
b()
?BQ
L4
L4
b()
?AT
BQ