/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import r from"./Collection.js";function n(n,e,i=r){return e||(e=new i),e===n||e.destroyed||(e.removeAll(),t(n)?e.addMany(n):n&&e.add(n)),e}function e(r){return r}function t(r){return r&&(Array.isArray(r)||"items"in r&&Array.isArray(r.items))}export{e as castForReferenceSetter,n as referenceSetter};
