All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ducks.api.models.editList.create.ts Maven / Gradle / Ivy

The newest version!
export function create(list: TItem[], item: TItem | TItem[]): TItem[] {
    const tail = Array.isArray(item) ? item : [item]

    return [
        ...list,
        ...tail,
    ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy