assemble/handlebars-helpers — pull request #140 by mdibaiee (2014-06-29 00:28:10+00:00)
Title: Number object problem

In some situations like iterating over objects with numeral values, `this` becomes a Number Object and not actually a number, in those situations, comparing with other numbers is impossible:

var x = new Number(2);
var y = 2;
x == y // true
x !== y // true

A template like this wouldn't work ( it will output 'Blablabla' everytime because both 2 !== 2 and 1 !== 2 result in true ):

object = {
x: 2,
y: 1
}
{{#each object}}
{{#isnt this 2}}
Blablabla
{{/is}}
{{/each}}

I haven't really digged into this library, so I don't know if this problem persists anywhere else, I hope it doesn't.