I hadn't seen that. It is a bit shorter, because you needn't repeat the source object. My e.g. would be
lim = getLim();
const {minimum: lo, maximum: hi} = lim; lim = getLim();
const {minimum: lo, maximum: hi} = lim;No comments yet.