realm-js/lib/lists.js
Scott Kyle 2e592bc101 Sprinkle some const inside ES6 JS code
React Native 0.13.0 fixes the bug we experienced by using const.
2015-10-21 13:57:34 -07:00

23 lines
379 B
JavaScript

'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);
}