oa-jira
Version:
Octet Agile's JIRA connectivity project.
13 lines (8 loc) • 311 B
JavaScript
const is = array => Array.isArray(array);
exports.is = is;
exports.not = array => !is(array);
const length = array => (is(array) ? array.length : 0);
exports.length = length;
const isEmpty = array => length(array) === 0;
exports.isEmpty = isEmpty;
exports.notEmpty = array => length(array) > 0;