You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
300 B
JavaScript

"use strict";
/* FIXME: Complete, maybe */
const Promise = require("bluebird");
module.exports = function atLeastOne(method) {
return function methodWrapper(...args) {
return Promise.try(() => {
return method(...args);
}).then((result) => {
if (Array.isArray(result)) {
}
})
}
};