3 ms·Return Early, Return Often3 points by signa11 7y agofalcor84 7y agoThat whole function could be rewritten to just the following one-liner, no? return !!(getEmployee(id) || getManager(id) || getAdmin(id));