diff --git a/src/creation.ts b/src/creation.ts index cf97111..679ce9f 100644 --- a/src/creation.ts +++ b/src/creation.ts @@ -53,25 +53,11 @@ export type CreateArrayOptions = { * @param readOnly `true` if array should be protected against modification, defaults to `false`. * @param dimensionSeparator if specified, defines an alternate string separator placed between the dimension chunks. */ -export async function create(opts: CreateArrayOptions): Promise { - const { - shape, - path, - chunkStore, - filters, - dimensionSeparator, - chunks = true, - dtype = " { + + store = normalizeStoreArgument(store); await initArray(store, shape, chunks, dtype, path, compressor, fillValue, order, overwrite, chunkStore, filters, dimensionSeparator); const z = await ZarrArray.create(store, path, readOnly, chunkStore, cacheMetadata, cacheAttrs);