felixgirault/essence.js

View on GitHub
src/conditions/isResponseEmpty.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 *    Tells if the given response is empty.
 *
 *    @param object payload Payload.
 *    @return bool
 */
export default function isResponseEmpty({res}) {
    return res.isEmpty();
}