as (name) {
    const props = {}
    const original = this
    proxiedMapperMethods.forEach(function (method) {
      props[method] = {
        writable: true,
        value (...args) {
          return original[method](name, ...args)
        }
      }
    })
    props.getMapper = {
      writable: true,
      value () {
        return original.getMapper(name)
      }
    }
    return Object.create(this, props)
  }
Return a container scoped to a particular mapper.

@example <caption>Container#as</caption>
// import { Container } from 'js-data';
const JSData = require('js-data');
const { Container } = JSData;
console.log('Using JSData v' + JSData.version.full);

const store = new Container();
const UserMapper = store.defineMapper('user');
const UserStore = store.as('user');

const user1 = store.createRecord('user', { name: 'John' });
const user2 = UserStore.createRecord({ name: 'John' });
const user3 = UserMapper.createRecord({ name: 'John' });
console.log(user1 === user2);
console.log(user2 === user3);
console.log(user1 === user3);

@method Container#as
@param {string} name Name of the {@link Mapper}.
@returns {Object} A container scoped to a particular mapper.
@since 3.0.0