New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-truth-helpers

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-truth-helpers

Ember Truth Helpers

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ember Truth Helpers Build Status

HTMLBars template helpers for additional truth logic in if and unless statements.

Usage

HelperJavaScriptHTMLBars
eqif (a === b){{if (eq a b)}}
not-eqif (a !== b){{if (not-eq a b)}}
notif (!a){{if (not a)}}
andif (a && b){{if (and a b)}}
orif (a || b){{if (or a b)}}
xor`if (a && !b
gtif (a > b){{if (gt a b)}}
gteif (a >= b){{if (gte a b)}}
ltif (a < b){{if (lt a b)}}
lteif (a <= b){{if (lte a b)}}
is-arrayif (Ember.isArray(a)){{if (is-array a)}}
is-equalif (Ember.isEqual(a, b)){{if (is-equal a b)}}

API

is-equal

is-equal uses Ember.isEqual helper to evaluate equality of two values. eq should be sufficient for most applications. is-equal is necessary when trying to compare a complex object to a primitive value.

Install

  • ember install ember-truth-helpers

Other Helpers

Development

  • git clone https://github.com/jmurphyau/ember-truth-helpers.git
  • npm install
  • bower install
  • ember server
  • Visit your app at http://localhost:4200.

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Keywords

FAQs

Package last updated on 30 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc