aboutsummaryrefslogtreecommitdiff
path: root/api/util.py
blob: 836c524bf1a4ecbce6c1f4cdd9b543d87c88371c (plain)
1
2
3
4
5
6
def all_def(props):
    return all(bool(v) for v in props)


def all_notdef(props):
    return all(not v for v in props)