FreeAllMedia / stimpak

An easy-to-use system for defining, discovering, and re-using code, text, and workflow patterns
http://stimpak.io
MIT License
8 stars 1 forks source link

Should return original value if transform function returns falsy #38

Closed dcrockwell closed 8 years ago

dcrockwell commented 8 years ago
const answers = {
            string: "text"
        };

        stimpak
        .transform(answer => parseInt(answer))
        .answers(answers);

        stimpak.answers().string.should.eql("text");