UNPKG

@dxtmisha/functional-basic

Version:

Core functional utility library for modern web development without framework dependencies

9 lines (8 loc) 507 B
/** * Checks if value is in the array selected or if value equals selected, if selected is a string. * * Проверяет, есть ли value в массиве selected или равен ли value selected, если selected - строка. * @param value input value/ входное значение * @param selected array or string for comparison/ массив или строка для сравнения */ export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boolean;