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

add key-in helper

Open AmilKey opened this issue 9 years ago • 2 comments

@jmurphyau ^^

AmilKey avatar Apr 19 '16 11:04 AmilKey

Does this work if the object that contains the keys changes?

That was the worry I had with doing helpers on arrays and objects..

I'm not 100% on adding this even if it did work after the objects were updated.. I think I more do like the idea of keeping this library focused on simple a -- b comparisons, rather than a inside b type comparisons.. For those I think maybe an array-truth-helpers and hash-truth-helpers or something might be better..

I'm conscious of the fact that any helper added to this library is then included in every app that uses it.. Since there is no exclusion functionality at the moment there would be no way for a user to not include it in their code..

jmurphyau avatar Apr 29 '16 08:04 jmurphyau

@jmurphyau ok, I agree with you, I think you can close it

AmilKey avatar Apr 29 '16 08:04 AmilKey