Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

define-frozen-property

0.1.0 • Public • Published

defineFrozenProperty

NPM version Downloads Build Status Dependency status Dev Dependency status

Shortcut for defineProperty.

var defineFrozenProperty = require('define-frozen-property');
 
var student = {};
 
defineFrozenProperty(student, 'name', 'Kate', true/*enumerable*/);
defineFrozenProperty(student, 'age', '28');

Install

npm i define-frozen-property

DownloadsWeekly Downloads

6

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar