1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

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

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

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

        特性

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

        • 大量內(nèi)置驗(yàn)證

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

        • 用 TypeScript 編寫

        使用

        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)贊
        評論
        收藏
        分享

        手機(jī)掃一掃分享

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

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            91麻豆精品在线 | 乱伦中文字幕免费看 | 亚洲丰满尤物一二三区 | 日逼高清无码 | 大香蕉伊人8 | 亚洲无码家庭乱伦 | TS国产CHINA人妖 | 欧美另类色 | 亚洲欧美日韩丝袜另类 | 欧美日韩一区二区三区成人免费 |