adding socket listner dataset screen
This commit is contained in:
parent
776b6e540e
commit
a2066ce5cd
16 changed files with 127 additions and 50 deletions
|
@ -26,6 +26,7 @@ declare global {
|
|||
toPx(): string;
|
||||
unixFromDate(): string;
|
||||
isValid(str: string): boolean;
|
||||
randRange(min:number,max:number):number
|
||||
}
|
||||
|
||||
interface String {
|
||||
|
|
|
@ -24,4 +24,10 @@ export const NumberExtensions = () => {
|
|||
return !isNaN(Number(str));
|
||||
};
|
||||
}
|
||||
if(Number().randRange === undefined){
|
||||
// eslint-disable-next-line no-extend-native
|
||||
Number.prototype.randRange = function (min,max) {
|
||||
return Math.random() * (max - min) + min;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue