From 8d9914dc66516f1459669893d33b54e0e0d8988b Mon Sep 17 00:00:00 2001 From: vtrbo Date: Sat, 2 Dec 2023 06:09:06 +0000 Subject: [PATCH] Test Deployment Docs 5ec45990ce4f3af0ee35df0759f8537fa95a338b --- 404.html | 2 +- ....md.ihwiPyBz.js => functions_arr_groupBy.md.fqs2YyJs.js} | 2 +- ...Bz.lean.js => functions_arr_groupBy.md.fqs2YyJs.lean.js} | 2 +- ....md.OSpa889L.js => functions_arr_toArray.md.0C0PajLO.js} | 2 +- ...9L.lean.js => functions_arr_toArray.md.0C0PajLO.lean.js} | 2 +- ...md.Lar1Gxul.js => functions_color_darken.md.4H53FYoG.js} | 2 +- assets/functions_color_darken.md.4H53FYoG.lean.js | 1 + assets/functions_color_darken.md.Lar1Gxul.lean.js | 1 - ...etnJWmHM.js => functions_color_hexToRgba.md.yIhBHFw9.js} | 2 +- ...ean.js => functions_color_hexToRgba.md.yIhBHFw9.lean.js} | 2 +- ...d.yB1zXCPQ.js => functions_color_lighten.md.Myevidvn.js} | 2 +- ....lean.js => functions_color_lighten.md.Myevidvn.lean.js} | 2 +- ...cPt4qmI6.js => functions_color_rgbaToHex.md.6QRFIrJR.js} | 2 +- ...ean.js => functions_color_rgbaToHex.md.6QRFIrJR.lean.js} | 2 +- ...md.3ozO5pqO.js => functions_is_isBoolean.md.JtMl4wgS.js} | 2 +- ...O.lean.js => functions_is_isBoolean.md.JtMl4wgS.lean.js} | 2 +- ....md.tuIl7R2z.js => functions_is_isNumber.md.LWkiCWNb.js} | 2 +- ...2z.lean.js => functions_is_isNumber.md.LWkiCWNb.lean.js} | 2 +- ....md.b_G_smFc.js => functions_is_isString.md.JPCPJM-f.js} | 2 +- ...Fc.lean.js => functions_is_isString.md.JPCPJM-f.lean.js} | 2 +- ...pe.md.errjACgj.js => functions_is_isType.md.ZHtJMTfX.js} | 2 +- assets/functions_is_isType.md.ZHtJMTfX.lean.js | 1 + assets/functions_is_isType.md.errjACgj.lean.js | 1 - assets/{index.md.IUXx3cOd.js => index.md.6EMa7HBm.js} | 2 +- ...{index.md.IUXx3cOd.lean.js => index.md.6EMa7HBm.lean.js} | 2 +- functions/arr/groupBy.html | 6 +++--- functions/arr/toArray.html | 6 +++--- functions/color/darken.html | 6 +++--- functions/color/hexToRgba.html | 6 +++--- functions/color/lighten.html | 6 +++--- functions/color/rgbaToHex.html | 6 +++--- functions/is/isBoolean.html | 6 +++--- functions/is/isNumber.html | 6 +++--- functions/is/isString.html | 6 +++--- functions/is/isType.html | 6 +++--- hashmap.json | 2 +- index.html | 4 ++-- 37 files changed, 56 insertions(+), 56 deletions(-) rename assets/{functions_arr_groupBy.md.ihwiPyBz.js => functions_arr_groupBy.md.fqs2YyJs.js} (90%) rename assets/{functions_arr_groupBy.md.ihwiPyBz.lean.js => functions_arr_groupBy.md.fqs2YyJs.lean.js} (88%) rename assets/{functions_arr_toArray.md.OSpa889L.js => functions_arr_toArray.md.0C0PajLO.js} (86%) rename assets/{functions_arr_toArray.md.OSpa889L.lean.js => functions_arr_toArray.md.0C0PajLO.lean.js} (53%) rename assets/{functions_color_darken.md.Lar1Gxul.js => functions_color_darken.md.4H53FYoG.js} (81%) create mode 100644 assets/functions_color_darken.md.4H53FYoG.lean.js delete mode 100644 assets/functions_color_darken.md.Lar1Gxul.lean.js rename assets/{functions_color_hexToRgba.md.etnJWmHM.js => functions_color_hexToRgba.md.yIhBHFw9.js} (87%) rename assets/{functions_color_hexToRgba.md.etnJWmHM.lean.js => functions_color_hexToRgba.md.yIhBHFw9.lean.js} (72%) rename assets/{functions_color_lighten.md.yB1zXCPQ.js => functions_color_lighten.md.Myevidvn.js} (84%) rename assets/{functions_color_lighten.md.yB1zXCPQ.lean.js => functions_color_lighten.md.Myevidvn.lean.js} (58%) rename assets/{functions_color_rgbaToHex.md.cPt4qmI6.js => functions_color_rgbaToHex.md.6QRFIrJR.js} (89%) rename assets/{functions_color_rgbaToHex.md.cPt4qmI6.lean.js => functions_color_rgbaToHex.md.6QRFIrJR.lean.js} (83%) rename assets/{functions_is_isBoolean.md.3ozO5pqO.js => functions_is_isBoolean.md.JtMl4wgS.js} (87%) rename assets/{functions_is_isBoolean.md.3ozO5pqO.lean.js => functions_is_isBoolean.md.JtMl4wgS.lean.js} (57%) rename assets/{functions_is_isNumber.md.tuIl7R2z.js => functions_is_isNumber.md.LWkiCWNb.js} (84%) rename assets/{functions_is_isNumber.md.tuIl7R2z.lean.js => functions_is_isNumber.md.LWkiCWNb.lean.js} (65%) rename assets/{functions_is_isString.md.b_G_smFc.js => functions_is_isString.md.JPCPJM-f.js} (85%) rename assets/{functions_is_isString.md.b_G_smFc.lean.js => functions_is_isString.md.JPCPJM-f.lean.js} (65%) rename assets/{functions_is_isType.md.errjACgj.js => functions_is_isType.md.ZHtJMTfX.js} (82%) create mode 100644 assets/functions_is_isType.md.ZHtJMTfX.lean.js delete mode 100644 assets/functions_is_isType.md.errjACgj.lean.js rename assets/{index.md.IUXx3cOd.js => index.md.6EMa7HBm.js} (92%) rename assets/{index.md.IUXx3cOd.lean.js => index.md.6EMa7HBm.lean.js} (92%) diff --git a/404.html b/404.html index ac393d8..ae29dd6 100644 --- a/404.html +++ b/404.html @@ -21,7 +21,7 @@
Skip to content

404

PAGE NOT FOUND

But if you don't change your direction, and if you keep looking, you may end up where you are heading.

MIT Licensed

- + \ No newline at end of file diff --git a/assets/functions_arr_groupBy.md.ihwiPyBz.js b/assets/functions_arr_groupBy.md.fqs2YyJs.js similarity index 90% rename from assets/functions_arr_groupBy.md.ihwiPyBz.js rename to assets/functions_arr_groupBy.md.fqs2YyJs.js index a8b4822..ef2ba7f 100644 --- a/assets/functions_arr_groupBy.md.ihwiPyBz.js +++ b/assets/functions_arr_groupBy.md.fqs2YyJs.js @@ -1 +1 @@ -import{_ as t,D as e,c as o,I as l,R as a,o as n}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"groupBy","description":"","frontmatter":{"title":"groupBy","lang":"zh-CN"},"headers":[],"relativePath":"functions/arr/groupBy.md","filePath":"functions/arr/groupBy.md","lastUpdated":1701335721000}'),p={name:"functions/arr/groupBy.md"},r=a('

groupBy

将数组根据条件函数分组

安装

bash
pnpm add @vtrbo/utils-arr
pnpm add @vtrbo/utils-arr
bash
yarn add @vtrbo/utils-arr
yarn add @vtrbo/utils-arr
bash
npm install @vtrbo/utils-arr
npm install @vtrbo/utils-arr

使用

',5),c=a('

参数

名称描述类型必填默认值
list欲分组的数据T[]-
fn分组条件(single: T) => any-
',2);function d(i,h,y,u,b,v){const s=e("demo");return n(),o("div",null,[r,l(s,{example:"arr/groupBy/basic.ts"}),c])}const m=t(p,[["render",d]]);export{g as __pageData,m as default}; +import{_ as t,D as e,c as o,I as l,R as a,o as n}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"groupBy","description":"","frontmatter":{"title":"groupBy","lang":"zh-CN"},"headers":[],"relativePath":"functions/arr/groupBy.md","filePath":"functions/arr/groupBy.md","lastUpdated":1701497288000}'),p={name:"functions/arr/groupBy.md"},r=a('

groupBy

将数组根据条件函数分组

安装

bash
pnpm add @vtrbo/utils-arr
pnpm add @vtrbo/utils-arr
bash
yarn add @vtrbo/utils-arr
yarn add @vtrbo/utils-arr
bash
npm install @vtrbo/utils-arr
npm install @vtrbo/utils-arr

使用

',5),c=a('

参数

名称描述类型必填默认值
list欲分组的数据T[]-
fn分组条件(single: T) => any-
',2);function d(i,h,y,u,b,v){const s=e("demo");return n(),o("div",null,[r,l(s,{example:"arr/groupBy/basic.ts"}),c])}const m=t(p,[["render",d]]);export{g as __pageData,m as default}; diff --git a/assets/functions_arr_groupBy.md.ihwiPyBz.lean.js b/assets/functions_arr_groupBy.md.fqs2YyJs.lean.js similarity index 88% rename from assets/functions_arr_groupBy.md.ihwiPyBz.lean.js rename to assets/functions_arr_groupBy.md.fqs2YyJs.lean.js index 2dc5024..c963c8d 100644 --- a/assets/functions_arr_groupBy.md.ihwiPyBz.lean.js +++ b/assets/functions_arr_groupBy.md.fqs2YyJs.lean.js @@ -1 +1 @@ -import{_ as t,D as e,c as o,I as l,R as a,o as n}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"groupBy","description":"","frontmatter":{"title":"groupBy","lang":"zh-CN"},"headers":[],"relativePath":"functions/arr/groupBy.md","filePath":"functions/arr/groupBy.md","lastUpdated":1701335721000}'),p={name:"functions/arr/groupBy.md"},r=a("",5),c=a("",2);function d(i,h,y,u,b,v){const s=e("demo");return n(),o("div",null,[r,l(s,{example:"arr/groupBy/basic.ts"}),c])}const m=t(p,[["render",d]]);export{g as __pageData,m as default}; +import{_ as t,D as e,c as o,I as l,R as a,o as n}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"groupBy","description":"","frontmatter":{"title":"groupBy","lang":"zh-CN"},"headers":[],"relativePath":"functions/arr/groupBy.md","filePath":"functions/arr/groupBy.md","lastUpdated":1701497288000}'),p={name:"functions/arr/groupBy.md"},r=a("",5),c=a("",2);function d(i,h,y,u,b,v){const s=e("demo");return n(),o("div",null,[r,l(s,{example:"arr/groupBy/basic.ts"}),c])}const m=t(p,[["render",d]]);export{g as __pageData,m as default}; diff --git a/assets/functions_arr_toArray.md.OSpa889L.js b/assets/functions_arr_toArray.md.0C0PajLO.js similarity index 86% rename from assets/functions_arr_toArray.md.OSpa889L.js rename to assets/functions_arr_toArray.md.0C0PajLO.js index 36a49d4..5019b87 100644 --- a/assets/functions_arr_toArray.md.OSpa889L.js +++ b/assets/functions_arr_toArray.md.0C0PajLO.js @@ -1 +1 @@ -import{_ as t,D as e,c as o,I as l,R as a,o as n}from"./chunks/framework.CnkD3pMU.js";const A=JSON.parse('{"title":"toArray","description":"","frontmatter":{"title":"toArray","lang":"zh-CN"},"headers":[],"relativePath":"functions/arr/toArray.md","filePath":"functions/arr/toArray.md","lastUpdated":1701335721000}'),r={name:"functions/arr/toArray.md"},p=a('

toArray

将数据转换为数组类型。

安装

bash
pnpm add @vtrbo/utils-arr
pnpm add @vtrbo/utils-arr
bash
yarn add @vtrbo/utils-arr
yarn add @vtrbo/utils-arr
bash
npm install @vtrbo/utils-arr
npm install @vtrbo/utils-arr

使用

',6),c=a('

参数

名称描述类型必填默认值
data欲转换的数据any-
',2);function d(i,h,y,b,v,_){const s=e("demo");return n(),o("div",null,[p,l(s,{example:"arr/toArray/basic.ts"}),c])}const m=t(r,[["render",d]]);export{A as __pageData,m as default}; +import{_ as e,D as t,c as o,I as l,R as a,o as n}from"./chunks/framework.CnkD3pMU.js";const A=JSON.parse('{"title":"toArray","description":"","frontmatter":{"title":"toArray","lang":"zh-CN"},"headers":[],"relativePath":"functions/arr/toArray.md","filePath":"functions/arr/toArray.md","lastUpdated":1701497288000}'),r={name:"functions/arr/toArray.md"},p=a('

toArray

将数据转换为数组类型。

安装

bash
pnpm add @vtrbo/utils-arr
pnpm add @vtrbo/utils-arr
bash
yarn add @vtrbo/utils-arr
yarn add @vtrbo/utils-arr
bash
npm install @vtrbo/utils-arr
npm install @vtrbo/utils-arr

使用

',6),c=a('

参数

名称描述类型必填默认值
data欲转换的数据any-
',2);function d(i,h,y,b,v,_){const s=t("demo");return n(),o("div",null,[p,l(s,{example:"arr/toArray/basic.ts"}),c])}const m=e(r,[["render",d]]);export{A as __pageData,m as default}; diff --git a/assets/functions_arr_toArray.md.OSpa889L.lean.js b/assets/functions_arr_toArray.md.0C0PajLO.lean.js similarity index 53% rename from assets/functions_arr_toArray.md.OSpa889L.lean.js rename to assets/functions_arr_toArray.md.0C0PajLO.lean.js index b7771b1..e5b96e3 100644 --- a/assets/functions_arr_toArray.md.OSpa889L.lean.js +++ b/assets/functions_arr_toArray.md.0C0PajLO.lean.js @@ -1 +1 @@ -import{_ as t,D as e,c as o,I as l,R as a,o as n}from"./chunks/framework.CnkD3pMU.js";const A=JSON.parse('{"title":"toArray","description":"","frontmatter":{"title":"toArray","lang":"zh-CN"},"headers":[],"relativePath":"functions/arr/toArray.md","filePath":"functions/arr/toArray.md","lastUpdated":1701335721000}'),r={name:"functions/arr/toArray.md"},p=a("",6),c=a("",2);function d(i,h,y,b,v,_){const s=e("demo");return n(),o("div",null,[p,l(s,{example:"arr/toArray/basic.ts"}),c])}const m=t(r,[["render",d]]);export{A as __pageData,m as default}; +import{_ as e,D as t,c as o,I as l,R as a,o as n}from"./chunks/framework.CnkD3pMU.js";const A=JSON.parse('{"title":"toArray","description":"","frontmatter":{"title":"toArray","lang":"zh-CN"},"headers":[],"relativePath":"functions/arr/toArray.md","filePath":"functions/arr/toArray.md","lastUpdated":1701497288000}'),r={name:"functions/arr/toArray.md"},p=a("",6),c=a("",2);function d(i,h,y,b,v,_){const s=t("demo");return n(),o("div",null,[p,l(s,{example:"arr/toArray/basic.ts"}),c])}const m=e(r,[["render",d]]);export{A as __pageData,m as default}; diff --git a/assets/functions_color_darken.md.Lar1Gxul.js b/assets/functions_color_darken.md.4H53FYoG.js similarity index 81% rename from assets/functions_color_darken.md.Lar1Gxul.js rename to assets/functions_color_darken.md.4H53FYoG.js index 0c6933a..1b0bd06 100644 --- a/assets/functions_color_darken.md.Lar1Gxul.js +++ b/assets/functions_color_darken.md.4H53FYoG.js @@ -1 +1 @@ -import{_ as l,D as n,c as r,I as s,R as o,k as a,a as t,o as p}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"darken","description":"","frontmatter":{"title":"darken","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/darken.md","filePath":"functions/color/darken.md","lastUpdated":1701335721000}'),d={name:"functions/color/darken.md"},c=o('

darken

将颜色加深

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX颜色加深

',6),i=a("h3",{id:"rgb或rgba颜色加深",tabindex:"-1"},[a("code",null,"RGB"),t("或"),a("code",null,"RGBA"),t("颜色加深 "),a("a",{class:"header-anchor",href:"#rgb或rgba颜色加深","aria-label":'Permalink to "`RGB`或`RGBA`颜色加深"'},"​")],-1),h=o('

参数

名称描述类型必填默认值
color欲加深的颜色值string-
level加深级别number10
',2);function b(_,v,y,u,k,m){const e=n("demo");return p(),r("div",null,[c,s(e,{example:"color/darken/hexToDarken.ts"}),i,s(e,{example:"color/darken/rgbaToDarken.ts"}),h])}const C=l(d,[["render",b]]);export{g as __pageData,C as default}; +import{_ as l,D as n,c as r,I as s,R as t,k as a,a as o,o as d}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"darken","description":"","frontmatter":{"title":"darken","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/darken.md","filePath":"functions/color/darken.md","lastUpdated":1701497288000}'),p={name:"functions/color/darken.md"},c=t('

darken

将颜色加深

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX颜色加深

',6),i=a("h3",{id:"rgb或rgba颜色加深",tabindex:"-1"},[a("code",null,"RGB"),o("或"),a("code",null,"RGBA"),o("颜色加深 "),a("a",{class:"header-anchor",href:"#rgb或rgba颜色加深","aria-label":'Permalink to "`RGB`或`RGBA`颜色加深"'},"​")],-1),h=t('

参数

名称描述类型必填默认值
color欲加深的颜色值string-
level加深级别number10
',2);function b(_,y,v,u,k,m){const e=n("demo");return d(),r("div",null,[c,s(e,{example:"color/darken/hexToDarken.ts"}),i,s(e,{example:"color/darken/rgbaToDarken.ts"}),h])}const C=l(p,[["render",b]]);export{g as __pageData,C as default}; diff --git a/assets/functions_color_darken.md.4H53FYoG.lean.js b/assets/functions_color_darken.md.4H53FYoG.lean.js new file mode 100644 index 0000000..5e77c6c --- /dev/null +++ b/assets/functions_color_darken.md.4H53FYoG.lean.js @@ -0,0 +1 @@ +import{_ as l,D as n,c as r,I as s,R as t,k as a,a as o,o as d}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"darken","description":"","frontmatter":{"title":"darken","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/darken.md","filePath":"functions/color/darken.md","lastUpdated":1701497288000}'),p={name:"functions/color/darken.md"},c=t("",6),i=a("h3",{id:"rgb或rgba颜色加深",tabindex:"-1"},[a("code",null,"RGB"),o("或"),a("code",null,"RGBA"),o("颜色加深 "),a("a",{class:"header-anchor",href:"#rgb或rgba颜色加深","aria-label":'Permalink to "`RGB`或`RGBA`颜色加深"'},"​")],-1),h=t("",2);function b(_,y,v,u,k,m){const e=n("demo");return d(),r("div",null,[c,s(e,{example:"color/darken/hexToDarken.ts"}),i,s(e,{example:"color/darken/rgbaToDarken.ts"}),h])}const C=l(p,[["render",b]]);export{g as __pageData,C as default}; diff --git a/assets/functions_color_darken.md.Lar1Gxul.lean.js b/assets/functions_color_darken.md.Lar1Gxul.lean.js deleted file mode 100644 index 748d81b..0000000 --- a/assets/functions_color_darken.md.Lar1Gxul.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as l,D as n,c as r,I as s,R as o,k as a,a as t,o as p}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"darken","description":"","frontmatter":{"title":"darken","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/darken.md","filePath":"functions/color/darken.md","lastUpdated":1701335721000}'),d={name:"functions/color/darken.md"},c=o("",6),i=a("h3",{id:"rgb或rgba颜色加深",tabindex:"-1"},[a("code",null,"RGB"),t("或"),a("code",null,"RGBA"),t("颜色加深 "),a("a",{class:"header-anchor",href:"#rgb或rgba颜色加深","aria-label":'Permalink to "`RGB`或`RGBA`颜色加深"'},"​")],-1),h=o("",2);function b(_,v,y,u,k,m){const e=n("demo");return p(),r("div",null,[c,s(e,{example:"color/darken/hexToDarken.ts"}),i,s(e,{example:"color/darken/rgbaToDarken.ts"}),h])}const C=l(d,[["render",b]]);export{g as __pageData,C as default}; diff --git a/assets/functions_color_hexToRgba.md.etnJWmHM.js b/assets/functions_color_hexToRgba.md.yIhBHFw9.js similarity index 87% rename from assets/functions_color_hexToRgba.md.etnJWmHM.js rename to assets/functions_color_hexToRgba.md.yIhBHFw9.js index f4124b0..c1a0089 100644 --- a/assets/functions_color_hexToRgba.md.etnJWmHM.js +++ b/assets/functions_color_hexToRgba.md.yIhBHFw9.js @@ -1 +1 @@ -import{_ as l,D as n,c,I as o,R as t,k as a,a as e,o as p}from"./chunks/framework.CnkD3pMU.js";const x=JSON.parse('{"title":"hexToRgba","description":"","frontmatter":{"title":"hexToRgba","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/hexToRgba.md","filePath":"functions/color/hexToRgba.md","lastUpdated":1701335721000}'),r={name:"functions/color/hexToRgba.md"},d=t('

hexToRgba

HEX颜色值转换为RGBRGBA颜色值

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX转换为RGB

',6),i=a("h3",{id:"_4-8位hex转换为rgba",tabindex:"-1"},[e("4/8位"),a("code",null,"HEX"),e("转换为"),a("code",null,"RGBA"),e(),a("a",{class:"header-anchor",href:"#_4-8位hex转换为rgba","aria-label":'Permalink to "4/8位`HEX`转换为`RGBA`"'},"​")],-1),h=t('

参数

名称描述类型必填默认值
hex欲转换的颜色值string-
',2);function b(_,y,v,u,g,m){const s=n("demo");return p(),c("div",null,[d,o(s,{example:"color/hexToRgba/hexToRgb.ts"}),i,o(s,{example:"color/hexToRgba/hexToRgba.ts"}),h])}const D=l(r,[["render",b]]);export{x as __pageData,D as default}; +import{_ as l,D as n,c,I as o,R as t,k as a,a as e,o as p}from"./chunks/framework.CnkD3pMU.js";const x=JSON.parse('{"title":"hexToRgba","description":"","frontmatter":{"title":"hexToRgba","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/hexToRgba.md","filePath":"functions/color/hexToRgba.md","lastUpdated":1701497288000}'),r={name:"functions/color/hexToRgba.md"},d=t('

hexToRgba

HEX颜色值转换为RGBRGBA颜色值

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX转换为RGB

',6),i=a("h3",{id:"_4-8位hex转换为rgba",tabindex:"-1"},[e("4/8位"),a("code",null,"HEX"),e("转换为"),a("code",null,"RGBA"),e(),a("a",{class:"header-anchor",href:"#_4-8位hex转换为rgba","aria-label":'Permalink to "4/8位`HEX`转换为`RGBA`"'},"​")],-1),h=t('

参数

名称描述类型必填默认值
hex欲转换的颜色值string-
',2);function b(_,y,v,g,u,m){const s=n("demo");return p(),c("div",null,[d,o(s,{example:"color/hexToRgba/hexToRgb.ts"}),i,o(s,{example:"color/hexToRgba/hexToRgba.ts"}),h])}const k=l(r,[["render",b]]);export{x as __pageData,k as default}; diff --git a/assets/functions_color_hexToRgba.md.etnJWmHM.lean.js b/assets/functions_color_hexToRgba.md.yIhBHFw9.lean.js similarity index 72% rename from assets/functions_color_hexToRgba.md.etnJWmHM.lean.js rename to assets/functions_color_hexToRgba.md.yIhBHFw9.lean.js index ecc55f3..02eaee3 100644 --- a/assets/functions_color_hexToRgba.md.etnJWmHM.lean.js +++ b/assets/functions_color_hexToRgba.md.yIhBHFw9.lean.js @@ -1 +1 @@ -import{_ as l,D as n,c,I as o,R as t,k as a,a as e,o as p}from"./chunks/framework.CnkD3pMU.js";const x=JSON.parse('{"title":"hexToRgba","description":"","frontmatter":{"title":"hexToRgba","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/hexToRgba.md","filePath":"functions/color/hexToRgba.md","lastUpdated":1701335721000}'),r={name:"functions/color/hexToRgba.md"},d=t("",6),i=a("h3",{id:"_4-8位hex转换为rgba",tabindex:"-1"},[e("4/8位"),a("code",null,"HEX"),e("转换为"),a("code",null,"RGBA"),e(),a("a",{class:"header-anchor",href:"#_4-8位hex转换为rgba","aria-label":'Permalink to "4/8位`HEX`转换为`RGBA`"'},"​")],-1),h=t("",2);function b(_,y,v,u,g,m){const s=n("demo");return p(),c("div",null,[d,o(s,{example:"color/hexToRgba/hexToRgb.ts"}),i,o(s,{example:"color/hexToRgba/hexToRgba.ts"}),h])}const D=l(r,[["render",b]]);export{x as __pageData,D as default}; +import{_ as l,D as n,c,I as o,R as t,k as a,a as e,o as p}from"./chunks/framework.CnkD3pMU.js";const x=JSON.parse('{"title":"hexToRgba","description":"","frontmatter":{"title":"hexToRgba","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/hexToRgba.md","filePath":"functions/color/hexToRgba.md","lastUpdated":1701497288000}'),r={name:"functions/color/hexToRgba.md"},d=t("",6),i=a("h3",{id:"_4-8位hex转换为rgba",tabindex:"-1"},[e("4/8位"),a("code",null,"HEX"),e("转换为"),a("code",null,"RGBA"),e(),a("a",{class:"header-anchor",href:"#_4-8位hex转换为rgba","aria-label":'Permalink to "4/8位`HEX`转换为`RGBA`"'},"​")],-1),h=t("",2);function b(_,y,v,g,u,m){const s=n("demo");return p(),c("div",null,[d,o(s,{example:"color/hexToRgba/hexToRgb.ts"}),i,o(s,{example:"color/hexToRgba/hexToRgba.ts"}),h])}const k=l(r,[["render",b]]);export{x as __pageData,k as default}; diff --git a/assets/functions_color_lighten.md.yB1zXCPQ.js b/assets/functions_color_lighten.md.Myevidvn.js similarity index 84% rename from assets/functions_color_lighten.md.yB1zXCPQ.js rename to assets/functions_color_lighten.md.Myevidvn.js index 40da1d9..dde707f 100644 --- a/assets/functions_color_lighten.md.yB1zXCPQ.js +++ b/assets/functions_color_lighten.md.Myevidvn.js @@ -1 +1 @@ -import{_ as l,D as n,c as p,I as s,R as o,k as a,a as t,o as c}from"./chunks/framework.CnkD3pMU.js";const k=JSON.parse('{"title":"lighten","description":"","frontmatter":{"title":"lighten","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/lighten.md","filePath":"functions/color/lighten.md","lastUpdated":1701335721000}'),r={name:"functions/color/lighten.md"},d=o('

lighten

将颜色变浅

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX颜色变浅

',6),i=a("h3",{id:"rgb或rgba颜色变浅",tabindex:"-1"},[a("code",null,"RGB"),t("或"),a("code",null,"RGBA"),t("颜色变浅 "),a("a",{class:"header-anchor",href:"#rgb或rgba颜色变浅","aria-label":'Permalink to "`RGB`或`RGBA`颜色变浅"'},"​")],-1),h=o('

参数

名称描述类型必填默认值
color欲变浅的颜色值string-
level变浅级别number10
',2);function b(v,_,y,u,g,m){const e=n("demo");return c(),p("div",null,[d,s(e,{example:"color/lighten/hexToLighten.ts"}),i,s(e,{example:"color/lighten/rgbaToLighten.ts"}),h])}const C=l(r,[["render",b]]);export{k as __pageData,C as default}; +import{_ as l,D as n,c as p,I as s,R as o,k as a,a as t,o as r}from"./chunks/framework.CnkD3pMU.js";const D=JSON.parse('{"title":"lighten","description":"","frontmatter":{"title":"lighten","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/lighten.md","filePath":"functions/color/lighten.md","lastUpdated":1701497288000}'),c={name:"functions/color/lighten.md"},d=o('

lighten

将颜色变浅

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX颜色变浅

',6),i=a("h3",{id:"rgb或rgba颜色变浅",tabindex:"-1"},[a("code",null,"RGB"),t("或"),a("code",null,"RGBA"),t("颜色变浅 "),a("a",{class:"header-anchor",href:"#rgb或rgba颜色变浅","aria-label":'Permalink to "`RGB`或`RGBA`颜色变浅"'},"​")],-1),h=o('

参数

名称描述类型必填默认值
color欲变浅的颜色值string-
level变浅级别number10
',2);function b(_,v,y,g,u,m){const e=n("demo");return r(),p("div",null,[d,s(e,{example:"color/lighten/hexToLighten.ts"}),i,s(e,{example:"color/lighten/rgbaToLighten.ts"}),h])}const k=l(c,[["render",b]]);export{D as __pageData,k as default}; diff --git a/assets/functions_color_lighten.md.yB1zXCPQ.lean.js b/assets/functions_color_lighten.md.Myevidvn.lean.js similarity index 58% rename from assets/functions_color_lighten.md.yB1zXCPQ.lean.js rename to assets/functions_color_lighten.md.Myevidvn.lean.js index 6e345a9..eea4195 100644 --- a/assets/functions_color_lighten.md.yB1zXCPQ.lean.js +++ b/assets/functions_color_lighten.md.Myevidvn.lean.js @@ -1 +1 @@ -import{_ as l,D as n,c as p,I as s,R as o,k as a,a as t,o as c}from"./chunks/framework.CnkD3pMU.js";const k=JSON.parse('{"title":"lighten","description":"","frontmatter":{"title":"lighten","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/lighten.md","filePath":"functions/color/lighten.md","lastUpdated":1701335721000}'),r={name:"functions/color/lighten.md"},d=o("",6),i=a("h3",{id:"rgb或rgba颜色变浅",tabindex:"-1"},[a("code",null,"RGB"),t("或"),a("code",null,"RGBA"),t("颜色变浅 "),a("a",{class:"header-anchor",href:"#rgb或rgba颜色变浅","aria-label":'Permalink to "`RGB`或`RGBA`颜色变浅"'},"​")],-1),h=o("",2);function b(v,_,y,u,g,m){const e=n("demo");return c(),p("div",null,[d,s(e,{example:"color/lighten/hexToLighten.ts"}),i,s(e,{example:"color/lighten/rgbaToLighten.ts"}),h])}const C=l(r,[["render",b]]);export{k as __pageData,C as default}; +import{_ as l,D as n,c as p,I as s,R as o,k as a,a as t,o as r}from"./chunks/framework.CnkD3pMU.js";const D=JSON.parse('{"title":"lighten","description":"","frontmatter":{"title":"lighten","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/lighten.md","filePath":"functions/color/lighten.md","lastUpdated":1701497288000}'),c={name:"functions/color/lighten.md"},d=o("",6),i=a("h3",{id:"rgb或rgba颜色变浅",tabindex:"-1"},[a("code",null,"RGB"),t("或"),a("code",null,"RGBA"),t("颜色变浅 "),a("a",{class:"header-anchor",href:"#rgb或rgba颜色变浅","aria-label":'Permalink to "`RGB`或`RGBA`颜色变浅"'},"​")],-1),h=o("",2);function b(_,v,y,g,u,m){const e=n("demo");return r(),p("div",null,[d,s(e,{example:"color/lighten/hexToLighten.ts"}),i,s(e,{example:"color/lighten/rgbaToLighten.ts"}),h])}const k=l(c,[["render",b]]);export{D as __pageData,k as default}; diff --git a/assets/functions_color_rgbaToHex.md.cPt4qmI6.js b/assets/functions_color_rgbaToHex.md.6QRFIrJR.js similarity index 89% rename from assets/functions_color_rgbaToHex.md.cPt4qmI6.js rename to assets/functions_color_rgbaToHex.md.6QRFIrJR.js index 542aa29..18a6a0b 100644 --- a/assets/functions_color_rgbaToHex.md.cPt4qmI6.js +++ b/assets/functions_color_rgbaToHex.md.6QRFIrJR.js @@ -1 +1 @@ -import{_ as t,D as l,c as n,I as e,R as o,k as s,a as r,o as p}from"./chunks/framework.CnkD3pMU.js";const x=JSON.parse('{"title":"rgbaToHex","description":"","frontmatter":{"title":"rgbaToHex","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/rgbaToHex.md","filePath":"functions/color/rgbaToHex.md","lastUpdated":1701335721000}'),c={name:"functions/color/rgbaToHex.md"},d=o('

rgbaToHex

RGBRGBA颜色值转换为HEX颜色值

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

RGBA 转 HEX

',6),i=s("h3",{id:"rgb-转-hex",tabindex:"-1"},[r("RGB 转 HEX "),s("a",{class:"header-anchor",href:"#rgb-转-hex","aria-label":'Permalink to "RGB 转 HEX"'},"​")],-1),h=o('

参数

名称描述类型必填默认值
rgba欲转换的颜色值string-
',2);function b(_,g,y,v,u,m){const a=l("demo");return p(),n("div",null,[d,e(a,{example:"color/rgbaToHex/rgbaToHex.ts"}),i,e(a,{example:"color/rgbaToHex/rgbToHex.ts"}),h])}const T=t(c,[["render",b]]);export{x as __pageData,T as default}; +import{_ as t,D as l,c as n,I as e,R as o,k as s,a as r,o as p}from"./chunks/framework.CnkD3pMU.js";const x=JSON.parse('{"title":"rgbaToHex","description":"","frontmatter":{"title":"rgbaToHex","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/rgbaToHex.md","filePath":"functions/color/rgbaToHex.md","lastUpdated":1701497288000}'),c={name:"functions/color/rgbaToHex.md"},d=o('

rgbaToHex

RGBRGBA颜色值转换为HEX颜色值

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

RGBA 转 HEX

',6),i=s("h3",{id:"rgb-转-hex",tabindex:"-1"},[r("RGB 转 HEX "),s("a",{class:"header-anchor",href:"#rgb-转-hex","aria-label":'Permalink to "RGB 转 HEX"'},"​")],-1),h=o('

参数

名称描述类型必填默认值
rgba欲转换的颜色值string-
',2);function b(y,v,_,g,u,m){const a=l("demo");return p(),n("div",null,[d,e(a,{example:"color/rgbaToHex/rgbaToHex.ts"}),i,e(a,{example:"color/rgbaToHex/rgbToHex.ts"}),h])}const T=t(c,[["render",b]]);export{x as __pageData,T as default}; diff --git a/assets/functions_color_rgbaToHex.md.cPt4qmI6.lean.js b/assets/functions_color_rgbaToHex.md.6QRFIrJR.lean.js similarity index 83% rename from assets/functions_color_rgbaToHex.md.cPt4qmI6.lean.js rename to assets/functions_color_rgbaToHex.md.6QRFIrJR.lean.js index f7d924f..b9330e6 100644 --- a/assets/functions_color_rgbaToHex.md.cPt4qmI6.lean.js +++ b/assets/functions_color_rgbaToHex.md.6QRFIrJR.lean.js @@ -1 +1 @@ -import{_ as t,D as l,c as n,I as e,R as o,k as s,a as r,o as p}from"./chunks/framework.CnkD3pMU.js";const x=JSON.parse('{"title":"rgbaToHex","description":"","frontmatter":{"title":"rgbaToHex","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/rgbaToHex.md","filePath":"functions/color/rgbaToHex.md","lastUpdated":1701335721000}'),c={name:"functions/color/rgbaToHex.md"},d=o("",6),i=s("h3",{id:"rgb-转-hex",tabindex:"-1"},[r("RGB 转 HEX "),s("a",{class:"header-anchor",href:"#rgb-转-hex","aria-label":'Permalink to "RGB 转 HEX"'},"​")],-1),h=o("",2);function b(_,g,y,v,u,m){const a=l("demo");return p(),n("div",null,[d,e(a,{example:"color/rgbaToHex/rgbaToHex.ts"}),i,e(a,{example:"color/rgbaToHex/rgbToHex.ts"}),h])}const T=t(c,[["render",b]]);export{x as __pageData,T as default}; +import{_ as t,D as l,c as n,I as e,R as o,k as s,a as r,o as p}from"./chunks/framework.CnkD3pMU.js";const x=JSON.parse('{"title":"rgbaToHex","description":"","frontmatter":{"title":"rgbaToHex","lang":"zh-CN"},"headers":[],"relativePath":"functions/color/rgbaToHex.md","filePath":"functions/color/rgbaToHex.md","lastUpdated":1701497288000}'),c={name:"functions/color/rgbaToHex.md"},d=o("",6),i=s("h3",{id:"rgb-转-hex",tabindex:"-1"},[r("RGB 转 HEX "),s("a",{class:"header-anchor",href:"#rgb-转-hex","aria-label":'Permalink to "RGB 转 HEX"'},"​")],-1),h=o("",2);function b(y,v,_,g,u,m){const a=l("demo");return p(),n("div",null,[d,e(a,{example:"color/rgbaToHex/rgbaToHex.ts"}),i,e(a,{example:"color/rgbaToHex/rgbToHex.ts"}),h])}const T=t(c,[["render",b]]);export{x as __pageData,T as default}; diff --git a/assets/functions_is_isBoolean.md.3ozO5pqO.js b/assets/functions_is_isBoolean.md.JtMl4wgS.js similarity index 87% rename from assets/functions_is_isBoolean.md.3ozO5pqO.js rename to assets/functions_is_isBoolean.md.JtMl4wgS.js index 2dcb10a..d2d1138 100644 --- a/assets/functions_is_isBoolean.md.3ozO5pqO.js +++ b/assets/functions_is_isBoolean.md.JtMl4wgS.js @@ -1 +1 @@ -import{_ as e,D as o,c as t,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const A=JSON.parse('{"title":"isBoolean","description":"","frontmatter":{"title":"isBoolean","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isBoolean.md","filePath":"functions/is/isBoolean.md","lastUpdated":1701335721000}'),p={name:"functions/is/isBoolean.md"},i=s('

isBoolean

判断数据是否为布尔类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

',5),c=s('

Options

名称描述类型必填默认值
data欲校验的数据any-
',2);function r(d,h,b,y,v,u){const a=o("demo");return n(),t("div",null,[i,l(a,{example:"is/isBoolean/basic.ts"}),c])}const m=e(p,[["render",r]]);export{A as __pageData,m as default}; +import{_ as e,D as o,c as t,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const m=JSON.parse('{"title":"isBoolean","description":"","frontmatter":{"title":"isBoolean","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isBoolean.md","filePath":"functions/is/isBoolean.md","lastUpdated":1701497288000}'),p={name:"functions/is/isBoolean.md"},i=s('

isBoolean

判断数据是否为布尔类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

',5),c=s('

Options

名称描述类型必填默认值
data欲校验的数据any-
',2);function r(d,h,b,y,v,u){const a=o("demo");return n(),t("div",null,[i,l(a,{example:"is/isBoolean/basic.ts"}),c])}const A=e(p,[["render",r]]);export{m as __pageData,A as default}; diff --git a/assets/functions_is_isBoolean.md.3ozO5pqO.lean.js b/assets/functions_is_isBoolean.md.JtMl4wgS.lean.js similarity index 57% rename from assets/functions_is_isBoolean.md.3ozO5pqO.lean.js rename to assets/functions_is_isBoolean.md.JtMl4wgS.lean.js index 3dcbcc0..5dccc6d 100644 --- a/assets/functions_is_isBoolean.md.3ozO5pqO.lean.js +++ b/assets/functions_is_isBoolean.md.JtMl4wgS.lean.js @@ -1 +1 @@ -import{_ as e,D as o,c as t,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const A=JSON.parse('{"title":"isBoolean","description":"","frontmatter":{"title":"isBoolean","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isBoolean.md","filePath":"functions/is/isBoolean.md","lastUpdated":1701335721000}'),p={name:"functions/is/isBoolean.md"},i=s("",5),c=s("",2);function r(d,h,b,y,v,u){const a=o("demo");return n(),t("div",null,[i,l(a,{example:"is/isBoolean/basic.ts"}),c])}const m=e(p,[["render",r]]);export{A as __pageData,m as default}; +import{_ as e,D as o,c as t,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const m=JSON.parse('{"title":"isBoolean","description":"","frontmatter":{"title":"isBoolean","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isBoolean.md","filePath":"functions/is/isBoolean.md","lastUpdated":1701497288000}'),p={name:"functions/is/isBoolean.md"},i=s("",5),c=s("",2);function r(d,h,b,y,v,u){const a=o("demo");return n(),t("div",null,[i,l(a,{example:"is/isBoolean/basic.ts"}),c])}const A=e(p,[["render",r]]);export{m as __pageData,A as default}; diff --git a/assets/functions_is_isNumber.md.tuIl7R2z.js b/assets/functions_is_isNumber.md.LWkiCWNb.js similarity index 84% rename from assets/functions_is_isNumber.md.tuIl7R2z.js rename to assets/functions_is_isNumber.md.LWkiCWNb.js index afdc277..08ca27e 100644 --- a/assets/functions_is_isNumber.md.tuIl7R2z.js +++ b/assets/functions_is_isNumber.md.LWkiCWNb.js @@ -1 +1 @@ -import{_ as e,D as t,c as o,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const _=JSON.parse('{"title":"isNumber","description":"","frontmatter":{"title":"isNumber","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isNumber.md","filePath":"functions/is/isNumber.md","lastUpdated":1701335721000}'),p={name:"functions/is/isNumber.md"},i=s('

isNumber

判断数据是否为数值类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

',5),c=s('

Options

名称描述类型必填默认值
data欲校验的数据any-
',2);function r(d,h,b,u,y,v){const a=t("demo");return n(),o("div",null,[i,l(a,{example:"is/isNumber/basic.ts"}),c])}const A=e(p,[["render",r]]);export{_ as __pageData,A as default}; +import{_ as e,D as t,c as o,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const _=JSON.parse('{"title":"isNumber","description":"","frontmatter":{"title":"isNumber","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isNumber.md","filePath":"functions/is/isNumber.md","lastUpdated":1701497288000}'),p={name:"functions/is/isNumber.md"},i=s('

isNumber

判断数据是否为数值类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

',5),r=s('

Options

名称描述类型必填默认值
data欲校验的数据any-
',2);function c(d,h,b,u,y,v){const a=t("demo");return n(),o("div",null,[i,l(a,{example:"is/isNumber/basic.ts"}),r])}const A=e(p,[["render",c]]);export{_ as __pageData,A as default}; diff --git a/assets/functions_is_isNumber.md.tuIl7R2z.lean.js b/assets/functions_is_isNumber.md.LWkiCWNb.lean.js similarity index 65% rename from assets/functions_is_isNumber.md.tuIl7R2z.lean.js rename to assets/functions_is_isNumber.md.LWkiCWNb.lean.js index b0d6c75..30f6a9c 100644 --- a/assets/functions_is_isNumber.md.tuIl7R2z.lean.js +++ b/assets/functions_is_isNumber.md.LWkiCWNb.lean.js @@ -1 +1 @@ -import{_ as e,D as t,c as o,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const _=JSON.parse('{"title":"isNumber","description":"","frontmatter":{"title":"isNumber","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isNumber.md","filePath":"functions/is/isNumber.md","lastUpdated":1701335721000}'),p={name:"functions/is/isNumber.md"},i=s("",5),c=s("",2);function r(d,h,b,u,y,v){const a=t("demo");return n(),o("div",null,[i,l(a,{example:"is/isNumber/basic.ts"}),c])}const A=e(p,[["render",r]]);export{_ as __pageData,A as default}; +import{_ as e,D as t,c as o,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const _=JSON.parse('{"title":"isNumber","description":"","frontmatter":{"title":"isNumber","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isNumber.md","filePath":"functions/is/isNumber.md","lastUpdated":1701497288000}'),p={name:"functions/is/isNumber.md"},i=s("",5),r=s("",2);function c(d,h,b,u,y,v){const a=t("demo");return n(),o("div",null,[i,l(a,{example:"is/isNumber/basic.ts"}),r])}const A=e(p,[["render",c]]);export{_ as __pageData,A as default}; diff --git a/assets/functions_is_isString.md.b_G_smFc.js b/assets/functions_is_isString.md.JPCPJM-f.js similarity index 85% rename from assets/functions_is_isString.md.b_G_smFc.js rename to assets/functions_is_isString.md.JPCPJM-f.js index 07280dd..5aa1495 100644 --- a/assets/functions_is_isString.md.b_G_smFc.js +++ b/assets/functions_is_isString.md.JPCPJM-f.js @@ -1 +1 @@ -import{_ as t,D as e,c as n,I as o,R as s,o as l}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"isString","description":"","frontmatter":{"title":"isString","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isString.md","filePath":"functions/is/isString.md","lastUpdated":1701335721000}'),p={name:"functions/is/isString.md"},i=s('

isString

判断数据是否为字符串类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

',5),r=s('

Options

名称描述类型必填默认值
data欲校验的数据any-
',2);function c(d,h,b,v,y,_){const a=e("demo");return l(),n("div",null,[i,o(a,{example:"is/isString/basic.ts"}),r])}const m=t(p,[["render",c]]);export{g as __pageData,m as default}; +import{_ as t,D as e,c as o,I as n,R as s,o as l}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"isString","description":"","frontmatter":{"title":"isString","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isString.md","filePath":"functions/is/isString.md","lastUpdated":1701497288000}'),p={name:"functions/is/isString.md"},i=s('

isString

判断数据是否为字符串类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

',5),r=s('

Options

名称描述类型必填默认值
data欲校验的数据any-
',2);function c(d,h,y,b,v,_){const a=e("demo");return l(),o("div",null,[i,n(a,{example:"is/isString/basic.ts"}),r])}const m=t(p,[["render",c]]);export{g as __pageData,m as default}; diff --git a/assets/functions_is_isString.md.b_G_smFc.lean.js b/assets/functions_is_isString.md.JPCPJM-f.lean.js similarity index 65% rename from assets/functions_is_isString.md.b_G_smFc.lean.js rename to assets/functions_is_isString.md.JPCPJM-f.lean.js index 4a6a07f..9c329a6 100644 --- a/assets/functions_is_isString.md.b_G_smFc.lean.js +++ b/assets/functions_is_isString.md.JPCPJM-f.lean.js @@ -1 +1 @@ -import{_ as t,D as e,c as n,I as o,R as s,o as l}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"isString","description":"","frontmatter":{"title":"isString","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isString.md","filePath":"functions/is/isString.md","lastUpdated":1701335721000}'),p={name:"functions/is/isString.md"},i=s("",5),r=s("",2);function c(d,h,b,v,y,_){const a=e("demo");return l(),n("div",null,[i,o(a,{example:"is/isString/basic.ts"}),r])}const m=t(p,[["render",c]]);export{g as __pageData,m as default}; +import{_ as t,D as e,c as o,I as n,R as s,o as l}from"./chunks/framework.CnkD3pMU.js";const g=JSON.parse('{"title":"isString","description":"","frontmatter":{"title":"isString","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isString.md","filePath":"functions/is/isString.md","lastUpdated":1701497288000}'),p={name:"functions/is/isString.md"},i=s("",5),r=s("",2);function c(d,h,y,b,v,_){const a=e("demo");return l(),o("div",null,[i,n(a,{example:"is/isString/basic.ts"}),r])}const m=t(p,[["render",c]]);export{g as __pageData,m as default}; diff --git a/assets/functions_is_isType.md.errjACgj.js b/assets/functions_is_isType.md.ZHtJMTfX.js similarity index 82% rename from assets/functions_is_isType.md.errjACgj.js rename to assets/functions_is_isType.md.ZHtJMTfX.js index 31c44d1..fd4c32b 100644 --- a/assets/functions_is_isType.md.errjACgj.js +++ b/assets/functions_is_isType.md.ZHtJMTfX.js @@ -1 +1 @@ -import{_ as e,D as t,c as o,I as l,R as s,o as p}from"./chunks/framework.CnkD3pMU.js";const A=JSON.parse('{"title":"isType","description":"","frontmatter":{"title":"isType","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isType.md","filePath":"functions/is/isType.md","lastUpdated":1701335721000}'),n={name:"functions/is/isType.md"},i=s('

isType

判断数据是否为指定类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

',5),c=s('

Options

名称描述类型必填默认值
data欲校验的数据any-
type校验的类型string-
',2);function d(r,h,y,b,v,_){const a=t("demo");return p(),o("div",null,[i,l(a,{example:"is/isType/basic.ts"}),c])}const m=e(n,[["render",d]]);export{A as __pageData,m as default}; +import{_ as e,D as t,c as o,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const m=JSON.parse('{"title":"isType","description":"","frontmatter":{"title":"isType","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isType.md","filePath":"functions/is/isType.md","lastUpdated":1701497288000}'),p={name:"functions/is/isType.md"},i=s('

isType

判断数据是否为指定类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

',5),c=s('

Options

名称描述类型必填默认值
data欲校验的数据any-
type校验的类型string-
',2);function d(r,h,y,b,u,v){const a=t("demo");return n(),o("div",null,[i,l(a,{example:"is/isType/basic.ts"}),c])}const A=e(p,[["render",d]]);export{m as __pageData,A as default}; diff --git a/assets/functions_is_isType.md.ZHtJMTfX.lean.js b/assets/functions_is_isType.md.ZHtJMTfX.lean.js new file mode 100644 index 0000000..e5883de --- /dev/null +++ b/assets/functions_is_isType.md.ZHtJMTfX.lean.js @@ -0,0 +1 @@ +import{_ as e,D as t,c as o,I as l,R as s,o as n}from"./chunks/framework.CnkD3pMU.js";const m=JSON.parse('{"title":"isType","description":"","frontmatter":{"title":"isType","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isType.md","filePath":"functions/is/isType.md","lastUpdated":1701497288000}'),p={name:"functions/is/isType.md"},i=s("",5),c=s("",2);function d(r,h,y,b,u,v){const a=t("demo");return n(),o("div",null,[i,l(a,{example:"is/isType/basic.ts"}),c])}const A=e(p,[["render",d]]);export{m as __pageData,A as default}; diff --git a/assets/functions_is_isType.md.errjACgj.lean.js b/assets/functions_is_isType.md.errjACgj.lean.js deleted file mode 100644 index de59247..0000000 --- a/assets/functions_is_isType.md.errjACgj.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,D as t,c as o,I as l,R as s,o as p}from"./chunks/framework.CnkD3pMU.js";const A=JSON.parse('{"title":"isType","description":"","frontmatter":{"title":"isType","lang":"zh-CN"},"headers":[],"relativePath":"functions/is/isType.md","filePath":"functions/is/isType.md","lastUpdated":1701335721000}'),n={name:"functions/is/isType.md"},i=s("",5),c=s("",2);function d(r,h,y,b,v,_){const a=t("demo");return p(),o("div",null,[i,l(a,{example:"is/isType/basic.ts"}),c])}const m=e(n,[["render",d]]);export{A as __pageData,m as default}; diff --git a/assets/index.md.IUXx3cOd.js b/assets/index.md.6EMa7HBm.js similarity index 92% rename from assets/index.md.IUXx3cOd.js rename to assets/index.md.6EMa7HBm.js index 2df6c1e..f524a8e 100644 --- a/assets/index.md.IUXx3cOd.js +++ b/assets/index.md.6EMa7HBm.js @@ -1 +1 @@ -import{_ as t,c as e,o}from"./chunks/framework.CnkD3pMU.js";const d=JSON.parse(`{"title":"VictorBo's Utils","titleTemplate":"Collection of common JavaScript or TypeScript utils","description":"","frontmatter":{"layout":"home","title":"VictorBo's Utils","titleTemplate":"Collection of common JavaScript or TypeScript utils","hero":{"name":"VictorBo's Utils","text":"Best Personal Function Library","tagline":"Collection of common JavaScript or TypeScript utils.","image":{"src":"/logo-shadow.svg","alt":"@vtrbo/utils"},"actions":[{"theme":"brand","text":"快速上手","link":"/"}]}},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1701335721000}`),i={name:"index.md"};function a(r,c,n,s,l,p){return o(),e("div")}const f=t(i,[["render",a]]);export{d as __pageData,f as default}; +import{_ as t,c as e,o}from"./chunks/framework.CnkD3pMU.js";const d=JSON.parse(`{"title":"VictorBo's Utils","titleTemplate":"Collection of common JavaScript or TypeScript utils","description":"","frontmatter":{"layout":"home","title":"VictorBo's Utils","titleTemplate":"Collection of common JavaScript or TypeScript utils","hero":{"name":"VictorBo's Utils","text":"Best Personal Function Library","tagline":"Collection of common JavaScript or TypeScript utils.","image":{"src":"/logo-shadow.svg","alt":"@vtrbo/utils"},"actions":[{"theme":"brand","text":"快速上手","link":"/"}]}},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1701497288000}`),i={name:"index.md"};function a(r,c,n,s,l,p){return o(),e("div")}const f=t(i,[["render",a]]);export{d as __pageData,f as default}; diff --git a/assets/index.md.IUXx3cOd.lean.js b/assets/index.md.6EMa7HBm.lean.js similarity index 92% rename from assets/index.md.IUXx3cOd.lean.js rename to assets/index.md.6EMa7HBm.lean.js index 2df6c1e..f524a8e 100644 --- a/assets/index.md.IUXx3cOd.lean.js +++ b/assets/index.md.6EMa7HBm.lean.js @@ -1 +1 @@ -import{_ as t,c as e,o}from"./chunks/framework.CnkD3pMU.js";const d=JSON.parse(`{"title":"VictorBo's Utils","titleTemplate":"Collection of common JavaScript or TypeScript utils","description":"","frontmatter":{"layout":"home","title":"VictorBo's Utils","titleTemplate":"Collection of common JavaScript or TypeScript utils","hero":{"name":"VictorBo's Utils","text":"Best Personal Function Library","tagline":"Collection of common JavaScript or TypeScript utils.","image":{"src":"/logo-shadow.svg","alt":"@vtrbo/utils"},"actions":[{"theme":"brand","text":"快速上手","link":"/"}]}},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1701335721000}`),i={name:"index.md"};function a(r,c,n,s,l,p){return o(),e("div")}const f=t(i,[["render",a]]);export{d as __pageData,f as default}; +import{_ as t,c as e,o}from"./chunks/framework.CnkD3pMU.js";const d=JSON.parse(`{"title":"VictorBo's Utils","titleTemplate":"Collection of common JavaScript or TypeScript utils","description":"","frontmatter":{"layout":"home","title":"VictorBo's Utils","titleTemplate":"Collection of common JavaScript or TypeScript utils","hero":{"name":"VictorBo's Utils","text":"Best Personal Function Library","tagline":"Collection of common JavaScript or TypeScript utils.","image":{"src":"/logo-shadow.svg","alt":"@vtrbo/utils"},"actions":[{"theme":"brand","text":"快速上手","link":"/"}]}},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1701497288000}`),i={name:"index.md"};function a(r,c,n,s,l,p){return o(),e("div")}const f=t(i,[["render",a]]);export{d as __pageData,f as default}; diff --git a/functions/arr/groupBy.html b/functions/arr/groupBy.html index c28d50f..134d977 100644 --- a/functions/arr/groupBy.html +++ b/functions/arr/groupBy.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

groupBy

将数组根据条件函数分组

安装

bash
pnpm add @vtrbo/utils-arr
pnpm add @vtrbo/utils-arr
bash
yarn add @vtrbo/utils-arr
yarn add @vtrbo/utils-arr
bash
npm install @vtrbo/utils-arr
npm install @vtrbo/utils-arr

使用

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
list欲分组的数据T[]-
fn分组条件(single: T) => any-

MIT Licensed

- +
Skip to content

groupBy

将数组根据条件函数分组

安装

bash
pnpm add @vtrbo/utils-arr
pnpm add @vtrbo/utils-arr
bash
yarn add @vtrbo/utils-arr
yarn add @vtrbo/utils-arr
bash
npm install @vtrbo/utils-arr
npm install @vtrbo/utils-arr

使用

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
list欲分组的数据T[]-
fn分组条件(single: T) => any-

MIT Licensed

+ \ No newline at end of file diff --git a/functions/arr/toArray.html b/functions/arr/toArray.html index ec41662..00c3265 100644 --- a/functions/arr/toArray.html +++ b/functions/arr/toArray.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

toArray

将数据转换为数组类型。

安装

bash
pnpm add @vtrbo/utils-arr
pnpm add @vtrbo/utils-arr
bash
yarn add @vtrbo/utils-arr
yarn add @vtrbo/utils-arr
bash
npm install @vtrbo/utils-arr
npm install @vtrbo/utils-arr

使用

  • 不传入数据时,返回一个新的空数组。
  • 传入数据不为数组时,返回一个包裹数据的数组。
  • 传入数据为数组或元组时,直接返回自身。
运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
data欲转换的数据any-

MIT Licensed

- +
Skip to content

toArray

将数据转换为数组类型。

安装

bash
pnpm add @vtrbo/utils-arr
pnpm add @vtrbo/utils-arr
bash
yarn add @vtrbo/utils-arr
yarn add @vtrbo/utils-arr
bash
npm install @vtrbo/utils-arr
npm install @vtrbo/utils-arr

使用

  • 不传入数据时,返回一个新的空数组。
  • 传入数据不为数组时,返回一个包裹数据的数组。
  • 传入数据为数组或元组时,直接返回自身。
运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
data欲转换的数据any-

MIT Licensed

+ \ No newline at end of file diff --git a/functions/color/darken.html b/functions/color/darken.html index 04f5345..92b444b 100644 --- a/functions/color/darken.html +++ b/functions/color/darken.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

darken

将颜色加深

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX颜色加深

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

RGBRGBA颜色加深

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
color欲加深的颜色值string-
level加深级别number10

MIT Licensed

- +
Skip to content

darken

将颜色加深

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX颜色加深

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

RGBRGBA颜色加深

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
color欲加深的颜色值string-
level加深级别number10

MIT Licensed

+ \ No newline at end of file diff --git a/functions/color/hexToRgba.html b/functions/color/hexToRgba.html index ca6c432..b8718e8 100644 --- a/functions/color/hexToRgba.html +++ b/functions/color/hexToRgba.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

hexToRgba

HEX颜色值转换为RGBRGBA颜色值

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX转换为RGB

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

4/8位HEX转换为RGBA

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
hex欲转换的颜色值string-

MIT Licensed

- +
Skip to content

hexToRgba

HEX颜色值转换为RGBRGBA颜色值

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX转换为RGB

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

4/8位HEX转换为RGBA

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
hex欲转换的颜色值string-

MIT Licensed

+ \ No newline at end of file diff --git a/functions/color/lighten.html b/functions/color/lighten.html index 7e8ccb5..5871013 100644 --- a/functions/color/lighten.html +++ b/functions/color/lighten.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

lighten

将颜色变浅

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX颜色变浅

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

RGBRGBA颜色变浅

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
color欲变浅的颜色值string-
level变浅级别number10

MIT Licensed

- +
Skip to content

lighten

将颜色变浅

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

3/6位HEX颜色变浅

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

RGBRGBA颜色变浅

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
color欲变浅的颜色值string-
level变浅级别number10

MIT Licensed

+ \ No newline at end of file diff --git a/functions/color/rgbaToHex.html b/functions/color/rgbaToHex.html index e28a560..891f101 100644 --- a/functions/color/rgbaToHex.html +++ b/functions/color/rgbaToHex.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

rgbaToHex

RGBRGBA颜色值转换为HEX颜色值

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

RGBA 转 HEX

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

RGB 转 HEX

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
rgba欲转换的颜色值string-

MIT Licensed

- +
Skip to content

rgbaToHex

RGBRGBA颜色值转换为HEX颜色值

安装

bash
pnpm add @vtrbo/utils-color
pnpm add @vtrbo/utils-color
bash
yarn add @vtrbo/utils-color
yarn add @vtrbo/utils-color
bash
npm install @vtrbo/utils-color
npm install @vtrbo/utils-color

使用

RGBA 转 HEX

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

RGB 转 HEX

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

参数

名称描述类型必填默认值
rgba欲转换的颜色值string-

MIT Licensed

+ \ No newline at end of file diff --git a/functions/is/isBoolean.html b/functions/is/isBoolean.html index 09fbece..7fd4393 100644 --- a/functions/is/isBoolean.html +++ b/functions/is/isBoolean.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

isBoolean

判断数据是否为布尔类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

Options

名称描述类型必填默认值
data欲校验的数据any-

MIT Licensed

- +
Skip to content

isBoolean

判断数据是否为布尔类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

Options

名称描述类型必填默认值
data欲校验的数据any-

MIT Licensed

+ \ No newline at end of file diff --git a/functions/is/isNumber.html b/functions/is/isNumber.html index 1966970..c16a573 100644 --- a/functions/is/isNumber.html +++ b/functions/is/isNumber.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

isNumber

判断数据是否为数值类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

Options

名称描述类型必填默认值
data欲校验的数据any-

MIT Licensed

- +
Skip to content

isNumber

判断数据是否为数值类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

Options

名称描述类型必填默认值
data欲校验的数据any-

MIT Licensed

+ \ No newline at end of file diff --git a/functions/is/isString.html b/functions/is/isString.html index 507d901..26eb329 100644 --- a/functions/is/isString.html +++ b/functions/is/isString.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

isString

判断数据是否为字符串类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

Options

名称描述类型必填默认值
data欲校验的数据any-

MIT Licensed

- +
Skip to content

isString

判断数据是否为字符串类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

Options

名称描述类型必填默认值
data欲校验的数据any-

MIT Licensed

+ \ No newline at end of file diff --git a/functions/is/isType.html b/functions/is/isType.html index ab9c2cc..c331233 100644 --- a/functions/is/isType.html +++ b/functions/is/isType.html @@ -26,7 +26,7 @@ - + @@ -37,8 +37,8 @@ -
Skip to content

isType

判断数据是否为指定类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

Options

名称描述类型必填默认值
data欲校验的数据any-
type校验的类型string-

MIT Licensed

- +
Skip to content

isType

判断数据是否为指定类型。

Install

bash
pnpm add @vtrbo/utils-is
pnpm add @vtrbo/utils-is
bash
yarn add @vtrbo/utils-is
yarn add @vtrbo/utils-is
bash
npm install @vtrbo/utils-is
npm install @vtrbo/utils-is

Usage

运行结果
运行代码后显示结果,等待运行...
查看源码
复制代码
修改代码运行
运行代码
重置代码

Options

名称描述类型必填默认值
data欲校验的数据any-
type校验的类型string-

MIT Licensed

+ \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 5c2ae94..6b8725b 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"functions_is_isboolean.md":"3ozO5pqO","functions_is_isnumber.md":"tuIl7R2z","functions_color_rgbatohex.md":"cPt4qmI6","functions_is_isstring.md":"b_G_smFc","functions_is_istype.md":"errjACgj","functions_color_hextorgba.md":"etnJWmHM","index.md":"IUXx3cOd","functions_color_lighten.md":"yB1zXCPQ","functions_arr_toarray.md":"OSpa889L","functions_arr_groupby.md":"ihwiPyBz","functions_color_darken.md":"Lar1Gxul"} +{"functions_color_rgbatohex.md":"6QRFIrJR","functions_color_lighten.md":"Myevidvn","functions_is_istype.md":"ZHtJMTfX","functions_is_isboolean.md":"JtMl4wgS","index.md":"6EMa7HBm","functions_is_isnumber.md":"LWkiCWNb","functions_arr_groupby.md":"fqs2YyJs","functions_arr_toarray.md":"0C0PajLO","functions_color_darken.md":"4H53FYoG","functions_is_isstring.md":"JPCPJM-f","functions_color_hextorgba.md":"yIhBHFw9"} diff --git a/index.html b/index.html index 70056a6..7487c6e 100644 --- a/index.html +++ b/index.html @@ -26,7 +26,7 @@ - + @@ -38,7 +38,7 @@
Skip to content

VictorBo's Utils

Best Personal Function Library

Collection of common JavaScript or TypeScript utils.

@vtrbo/utils

MIT Licensed

- + \ No newline at end of file