Function
eq (left, right) : Boolean public
Module:
@ember/helper
Defined in packages/@ember/helper/index.ts:718
Available since v7.1.0
- left
- Unknown
- right
- Unknown
- returns
- Boolean
The {{eq}} helper returns true if its two arguments are strictly equal
(===). Takes exactly two arguments.
<template>
{{if (eq @status "active") "Active" "Inactive"}}
</template>
The eq helper is available as a keyword and does not need to be imported.