Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-truth-helpers

Package Overview
Dependencies
Maintainers
4
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

  • 4.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
130K
increased by17.63%
Maintainers
4
Weekly downloads
 
Created

What is ember-truth-helpers?

The ember-truth-helpers package provides a set of template helpers for common logical operations in Ember.js applications. These helpers allow you to perform logical comparisons and operations directly within your templates, making your code more readable and reducing the need for complex computed properties or controller logic.

What are ember-truth-helpers's main functionalities?

and

The `and` helper allows you to check if multiple conditions are true. If all conditions are true, the block inside the `if` statement will be executed.

{{#if (and condition1 condition2)}}
  Both conditions are true
{{/if}}

or

The `or` helper allows you to check if at least one of the conditions is true. If any condition is true, the block inside the `if` statement will be executed.

{{#if (or condition1 condition2)}}
  At least one condition is true
{{/if}}

not

The `not` helper allows you to check if a condition is false. If the condition is false, the block inside the `if` statement will be executed.

{{#if (not condition)}}
  Condition is false
{{/if}}

eq

The `eq` helper allows you to check if two values are equal. If the values are equal, the block inside the `if` statement will be executed.

{{#if (eq value1 value2)}}
  Values are equal
{{/if}}

gt

The `gt` helper allows you to check if one value is greater than another. If `value1` is greater than `value2`, the block inside the `if` statement will be executed.

{{#if (gt value1 value2)}}
  value1 is greater than value2
{{/if}}

Other packages similar to ember-truth-helpers

Keywords

FAQs

Package last updated on 11 Sep 2023

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