ember-truth-helpers icon indicating copy to clipboard operation
ember-truth-helpers copied to clipboard

Array.includes helper?

Open mehulkar opened this issue 6 years ago • 3 comments

It would be super useful to have a {{includes array item}} helper that does Array.prototype.includes. Would this helper be appropriate for this addon?

mehulkar avatar Aug 20 '18 22:08 mehulkar

@mehulkar Just so you know, ember-composable-helpers has this helper. https://github.com/DockYard/ember-composable-helpers#contains

That doesn't mean it's not appropriate for ember-truth-helpers, I'll let the devs decide for themselves. :)

Oreoz avatar Aug 23 '18 14:08 Oreoz

Oh nice that’s great, thank you!

On Thu, Aug 23, 2018 at 7:40 AM Jean-Philippe Roy [email protected] wrote:

@mehulkar https://github.com/mehulkar Just so you know, ember-composable-helpers has this helper. https://github.com/DockYard/ember-composable-helpers#contains

That doesn't mean it's not appropriate for ember-truth-helpers, I'll let the devs decide for themselves. :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jmurphyau/ember-truth-helpers/issues/86#issuecomment-415442907, or mute the thread https://github.com/notifications/unsubscribe-auth/AAd92IB4h4LqdfC6pjnGclSPJhIDiluFks5uTr7vgaJpZM4WE0Ex .

--


Mehul Kar @mehulkar

mehulkar avatar Aug 24 '18 06:08 mehulkar

whooops! looks like there's some problem with Travis

mum-never-proud avatar Mar 28 '20 13:03 mum-never-proud