@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 309 B
JavaScript
import{translate as e}from"../../i18n/translate.mjs";const t=(t,n,r)=>{let i=r.filter((e,t,n)=>n.indexOf(e)!==t);if(i.length>0)throw Error(e(`server:core.collections.fields.duplicates`,{data:{type:t,keys:i.join(`, `),typeKey:n}}))};export{t as default};
//# sourceMappingURL=check-duplicate-field-keys.mjs.map