Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is-array helper is returning false when array only has one object inside it. #93

Open
meganre opened this issue Jul 9, 2019 · 1 comment

Comments

@meganre
Copy link

meganre commented Jul 9, 2019

The is-array truth helper in templates is returning false when the array only has a length of one. However running the same array through isArray from @ember/array in the controller returns true.

image
image
First true is from the controller function, second is the array itself logged out and the final is the truth helper is-array logged from the hbs template

@JamesS-M
Copy link

JamesS-M commented Oct 1, 2020

Is this still an issue? I wasn't able to reproduce it: https://ember-twiddle.com/0b7738432e40b1b0a6ef0121575b4554?openFiles=controllers.application%5C.js%2C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants