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

Приведение массива к скаляру #14

Open
pasaran opened this issue Jun 19, 2013 · 1 comment
Open

Приведение массива к скаляру #14

pasaran opened this issue Jun 19, 2013 · 1 comment

Comments

@pasaran
Copy link
Owner

pasaran commented Jun 19, 2013

no.jpath('!!.foo', {
    foo: [ 0 ]
})

Что должно получаться? true или false?
Если считать только наличие ноды, то true — так как нодесет .foo состоит из одной ноды. Но скалярное значение этой ноды — 0 — ложно.

@pasaran
Copy link
Owner Author

pasaran commented Jun 19, 2013

no.jpath('!!.foo', {
    foo: {}
}

А тут?

doochik pushed a commit to doochik/nommon that referenced this issue Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant