common_predicates | UI-Router
Options
All
  • Public
  • Public/Protected
  • All
Menu

External module common_predicates

Predicates @module common_predicates

Index

Variables

isArray: isArray
isDate: function

Type declaration

    • (x: any): boolean
    • Parameters

      • x: any

      Returns boolean

isDefined: function

Type declaration

    • (x: X): boolean
    • Parameters

      • x: X

      Returns boolean

isFunction: function

Type declaration

    • (x: any): boolean
    • Parameters

      • x: any

      Returns boolean

isNumber: function

Type declaration

    • (x: any): boolean
    • Parameters

      • x: any

      Returns boolean

isPromise: function

Predicate which checks if a value looks like a Promise

Predicate which checks if a value looks like a Promise

It is probably a Promise if it's an object, and it has a then property which is a Function

Type declaration

    • (x: any): boolean
    • Parameters

      • x: any

      Returns boolean

isRegExp: function

Type declaration

    • (x: any): boolean
    • Parameters

      • x: any

      Returns boolean

isString: function

Type declaration

    • (x: any): boolean
    • Parameters

      • x: any

      Returns boolean

isUndefined: (Anonymous function)
toStr: toString

Functions

  • isInjectable(val: any): boolean
  • Predicate which checks if a value is injectable

  • Predicate which checks if a value is injectable

    A value is "injectable" if it is a function, or if it is an ng1 array-notation-style array where all the elements in the array are Strings, except the last one, which is a Function

    Parameters

    • val: any

    Returns boolean


  • isNull(o: any): boolean
  • isObject(x: any): boolean
  • tis(t: string): (Anonymous function)

Generated using TypeDoc