jv-has

has function

Usage no npm install needed!

<script type="module">
  import jvHas from 'https://cdn.skypack.dev/jv-has';
</script>

README

jjvein-has

Install

npm install jv-has

Introduction

判断依据

  1. Object: hasOwnProperty
  2. 数组: find
  3. 字符串: indexOf