Skip to content

Commit

Permalink
feat: add common util func
Browse files Browse the repository at this point in the history
  • Loading branch information
wzc520pyfm committed Mar 26, 2024
1 parent c99538c commit e3340be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const isUndefined = (s: unknown) => s === undefined;
const isNumber = (s: unknown) => typeof s === "number";

export default {
u: isUndefined,
n: isNumber,
};

0 comments on commit e3340be

Please sign in to comment.