<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Ow函數(shù)參數(shù)驗(yàn)證

          聯(lián)合創(chuàng)作 · 2023-09-22 02:42

          為人類(lèi)設(shè)計(jì)的的函數(shù)參數(shù)驗(yàn)證。

          特性

          • 富有表現(xiàn)力的可鏈接 API

          • 大量?jī)?nèi)置驗(yàn)證

          • 支持自定義驗(yàn)證

          • 用 TypeScript 編寫(xiě)

          使用

          import ow from 'ow';
          
          const unicorn = input => {
          	ow(input, ow.string.minLength(5));
          
          	// …
          };
          
          unicorn(3);
          //=> ArgumentError: Expected argument to be of type `string` but received type `number`
          
          unicorn('yo');
          //=> ArgumentError: Expected string to have a minimum length of `5`, got `yo`
          瀏覽 24
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  二区三区在线 | 国产精品九九九九九九 | 在线观看亚洲天堂 | 狼人香蕉28视频在线 | 日本黄色小视频电影 |