UNPKG

promised-models

Version:

promise based, typed attributes, nested models and collections

15 lines (13 loc) 245 B
/** * Boolean attribute */ var Attribute = require('../attribute'); module.exports = Attribute.inherit({ default: false, /** * @override {Attribute} */ parse: function (value) { return Boolean(value); } });