ts-collection
Version:
This is re-write of the java collection classes in typescript. There is some tweak as typescript templates are not as equivalent as Java.
21 lines (20 loc) • 692 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function isCollection(param) {
if (param === undefined || param === null) {
return false;
}
return param.size !== undefined
&& param.isEmpty !== undefined
&& param.contains !== undefined
&& param.iterator !== undefined
&& param.toArray !== undefined
&& param.add !== undefined
&& param.remove !== undefined
&& param.containsAll !== undefined
&& param.addAll !== undefined
&& param.removeAll !== undefined
&& param.retainAll !== undefined
&& param.clear !== undefined;
}
exports.isCollection = isCollection;