Files
third_party_jsframework/runtime/main/extend/systemplugin/utils.js
T
zhongjianfei 8b22f4f9fe zhongjianfei@huawei.com
Signed-off-by: zhongjianfei <zhongjianfei@huawei.com>
Change-Id: I2f4b3d48538c7e3d8172461fcb3b50f3299e339a
2021-09-05 11:34:23 +08:00

24 lines
700 B
JavaScript

export function hasComplete(...args) {
if (args[0] === undefined) {
return
}
args[0].call(this)
}
export function getRandomArbitrary(min, max) {
return Math.random().toFixed(6) * (max - min) + min;
}
export const paramMock = {
businessErrorMock: {
code: '[PC Preview]: unknow code',
name: '[PC Preview]: unknow name',
message: '[PC Preview]: unknow message',
stack: '[PC Preview]: unknow stack'
},
paramNumberMock: "[PC Preview] unknow number",
paramStringMock: "[PC Preview] unknow string",
paramBooleanMock: "[PC Preview] unknow boolean",
paramObjectMock: "[PC Preview] unknow object",
paramArrayMock: "[PC Preview] unknow Array"
}