博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
es7新特性 includes用法
阅读量:4677 次
发布时间:2019-06-09

本文共 148 字,大约阅读时间需要 1 分钟。

 返回数组是否包含某个元素

var array1 = [1, 2, 3];console.log(array1.includes(2)); // expected output: true

  

转载于:https://www.cnblogs.com/mlh1421/p/10008831.html

你可能感兴趣的文章
Halcon使用的3D相机模型-camera_calibration
查看>>
launch文件
查看>>
linux使用收集
查看>>
Python实现模拟登陆
查看>>
(一)angularjs5 环境搭建
查看>>
network Driver , TDI(Transport Driver Interface) Drivers
查看>>
[php] 猴子偷桃
查看>>
python-24: re 模块 之四,“*+”对重复的深入理解
查看>>
关于JSP
查看>>
《20171201-构建之法:现代软件工程-阅读笔记》
查看>>
ajaxpro简单调用
查看>>
爬网页数据
查看>>
eclipse内存溢出 参数配置
查看>>
页面元素定位 XPath 简介
查看>>
贪心/poj 1017 Packets
查看>>
[转]loadrunner:系统的平均并发用户数和并发数峰值如何估算
查看>>
Linux下Tomcat重新启动
查看>>
时间复杂度
查看>>
HTML Table to Json
查看>>
Theano 学习笔记(一)
查看>>