react-ddp
Version:
ddp client with subs, methods, minimongo supported without much work (see readme), will not make minimongo a dep.
15 lines (14 loc) • 304 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.uniqueId = uniqueId;
exports.contains = contains;
//created by mondora
var i = 0;
function uniqueId() {
return (i++).toString();
}
function contains(array, element) {
return array.indexOf(element) !== -1;
}