How to use the azk._.isEmpty function in azk

To help you get started, we’ve selected a few azk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github azukiapp / azk / src / manifest / index.js View on Github external
getSystemsByName(names) {
    var systems_name = this.systemsInOrder();

    if (!_.isEmpty(names)) {
      names = _.isArray(names) ? names : names.split(',');
      _.each(names, (name) => this.system(name, true));
      systems_name = _.intersection(systems_name, names);
    }

    return _.reduce(systems_name, (systems, name) => {
      systems.push(this.system(name, true));
      return systems;
    }, []);
  }
github azukiapp / azk / src / cli / command.js View on Github external
__show_examples() {
    if (!_.isEmpty(this.examples)) {
      this.output();
      this.tOutput("commands.help.examples");
      this.output();
      _.each(this.examples, (example) => {
        this.output(`  ${example}`);
      });
    }
  }
github azukiapp / azk / src / sync / worker.js View on Github external
unwatch() {
    if (!_.isEmpty(this.chok)) {
      this._send('sync', 'close');
      this.chok.close();
      this.chok = null;
    }
  }
github azukiapp / azk / src / manifest / validate.js View on Github external
static _deprecate(value, manifest, system, option, new_option) {
    if (!_.isEmpty(value)) {
      return [
        this._entry('deprecate', 'deprecated', manifest, { system, option, new_option })
      ];
    }
    return [];
  }

azk

ISC
Latest version published 7 years ago

Package Health Score

40 / 100
Full package analysis

Similar packages