Sha256: ac2de9f2b15ff64d33fcc4e0f3d7987ea2e2c9e4b74262a735b29d53819ff62c

Contents?: true

Size: 262 Bytes

Versions: 19

Compression:

Stored size: 262 Bytes

Contents

$.ematch = (val, expr) ->
  if typeof expr is 'boolean'
    expr
  else if expr?.constructor.name is 'RegExp'
    expr.test(val)
  else if $.isArray(expr)
    $.inArray(val, expr) > -1
  else if typeof expr is 'function'
    expr.call(val, val)
  else
    false

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 app/js/vendor/poised/utils.coffee
ela-4.1.5 app/js/vendor/poised/utils.coffee
ela-4.1.4 app/js/vendor/poised/utils.coffee
ela-4.1.3 app/js/vendor/poised/utils.coffee
ela-4.1.2 app/js/vendor/poised/utils.coffee
ela-4.1.1 app/js/vendor/poised/utils.coffee
ela-4.1.0 app/js/vendor/poised/utils.coffee
ela-4.0.0 app/js/vendor/poised/utils.coffee
ela-3.4.3 app/js/vendor/poised/utils.coffee
ela-3.4.2 app/js/vendor/poised/utils.coffee
ela-3.4.0 app/js/vendor/poised/utils.coffee
ela-3.3.1 app/js/vendor/poised/utils.coffee
ela-3.3.0 app/js/vendor/poised/utils.coffee
ela-3.2.0 app/js/vendor/poised/utils.coffee
ela-3.1.1 app/js/vendor/poised/utils.coffee
ela-3.1.0 app/js/vendor/poised/utils.coffee
ela-3.0.0 app/js/vendor/poised/utils.coffee
ela-2.0.0 app/js/vendor/poised/utils.coffee
ela-1.1.0 app/js/vendor/poised/utils.coffee