UNPKG

whatsapp-api-js

Version:

A TypeScript server agnostic Whatsapp's Official API framework

3 lines (2 loc) 233 B
function isInteger(n){return Number.isInteger(n)}function escapeUnicode(str){return str.replace(/[^\0-~]/g,ch=>"\\u"+("000"+ch.charCodeAt(0).toString(16)).slice(-4))}export{escapeUnicode,isInteger}; //# sourceMappingURL=utils.js.map