Model.js
function _ensureArray (model, property) {
  const propertyKey = property.getKey();
  let array = model.data[propertyKey];
  if (!array) {
    model.data[propertyKey] = array = [];
    ArrayType.flagAsArrayType(array);
  }

  return array;
}
function _ensureArray (model, property) {
  const propertyKey = property.getKey();
  let array = model.data[propertyKey];
  if (!array) {
    model.data[propertyKey] = array = [];
    ArrayType.flagAsArrayType(array);
  }

  return array;
}
function _ensureArray ( model , property ) { const propertyKey = property . getKey ( ) ; let array = model . data [ propertyKey ] ; if ( ! array ) { model . data [ propertyKey ] = array = [ ] ; ArrayType . flagAsArrayType ( array ) ; } return array ; }
This function will be used to make sure an array value exists for the given property
This function will be used to make sure an array value exists for the given property