How to use the typical.isNumber function in typical

To help you get started, we’ve selected a few typical 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 75lb / command-line-args / es5 / lib / definitions.js View on Github external
var numericAlias = this.list.some(function (def) {
        invalidOption = def;
        return t.isDefined(def.alias) && t.isNumber(def.alias);
      });
      if (numericAlias) {
github 75lb / command-line-args / lib / option-definitions.js View on Github external
const numericAlias = this.some(def => {
      invalidOption = def
      return t.isDefined(def.alias) && t.isNumber(def.alias)
    })
    if (numericAlias) {

typical

Isomorphic, functional type-checking for Javascript

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis