Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
sommilito-bank2
/
splide-4.1.3
/
src
/
js
/
utils
/
array
/
includes
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * Checks if the array includes the value or not. * `Array#includes` is not supported by IE. * * @param array - An array. * @param value - A value to search for. * * @return `true` if the array includes the value, or otherwise `false`. */ export function includes<T>( array: T[], value: T ): boolean { return array.indexOf( value ) > -1; }