Curious: Were the `mode` object helpers not helpful?

e.g. see
https://github.com/jvilk/BrowserFS/blob/master/src/generic/indexed_filesystem.coffee#L27