realm-js/lib/lists.js

27 lines
466 B
JavaScript
Raw Normal View History

2015-10-28 17:37:17 +00:00
/* Copyright 2015 Realm Inc - All Rights Reserved
* Proprietary and Confidential
*/
'use strict';
const constants = require('./constants');
const 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);
}