Use a for loop and iterate over the target array. If every element is contained within the current array (use current.indexOf(elem) !== -1) , then they're all ... ... <看更多>
The includes() method returns true if an array contains a given element; Otherwise, it returns false . The following illustrates the syntax of the includes() ... ... <看更多>
GitHub - kevlatus/polyfill-array-includes: This is a polyfill for the ... In Browser: <script src="/node_modules/polyfill-array-includes/index.js"></script> ... ... <看更多>