realm-js/lib/lists.js

23 lines
375 B
JavaScript
Raw Normal View History

'use strict';
let constants = require('./constants');
2015-10-08 00:08:19 +00:00
let util = require('./util');
module.exports = {
create,
};
class List {}
util.createMethods(List.prototype, constants.propTypes.LIST, [
'pop',
'shift',
'push',
'unshift',
'splice',
], true);
function create(realmId, info) {
return util.createList(List.prototype, realmId, info, true);
}