We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is not possible to push numbers to an array. If we do so:
- var min = 1 - var max = 99 - var i = min - var array = [] while i < max - array.push(i) - i++
We get the following error
executing "mixin_cart" at <$n>: wrong type for value; expected pugjs.Object; got int
This is of because Array.Push only takes an object as parameter, and those initialized numbers aren't really of pugjs.Object type at that time.
Array.Push
pugjs.Object
However if we have something like the following
- var object = { min: 1, max: 99 } - var i = object.min - var array = [] while i < object.max - array.push(i) - i++
It would work perfectly, because the type of object.min assigned to i, is a valid Object.
object.min
The text was updated successfully, but these errors were encountered:
bastianccm
No branches or pull requests
It is not possible to push numbers to an array. If we do so:
We get the following error
This is of because
Array.Push
only takes an object as parameter, and those initialized numbers aren't really ofpugjs.Object
type at that time.However if we have something like the following
It would work perfectly, because the type of
object.min
assigned to i, is a valid Object.The text was updated successfully, but these errors were encountered: