working rss feed to nostr publish
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
var toShortString = require("../to-short-string-representation")
|
||||
, isInteger = require("./is-integer");
|
||||
|
||||
module.exports = function (num) {
|
||||
if (!isInteger(num)) throw new TypeError(toShortString(num) + " is not a integer");
|
||||
return Number(num);
|
||||
};
|
||||
Reference in New Issue
Block a user