We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97de3ac commit b30cea5Copy full SHA for b30cea5
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "adamant-api",
3
- "version": "2.2.0",
+ "version": "2.3.0",
4
"description": "JavaScript API library for the ADAMANT Blockchain",
5
"keywords": [
6
"adm",
src/helpers/utils.ts
@@ -0,0 +1,6 @@
+export const hasOwnProperty = <T extends object, K extends PropertyKey>(
+ obj: T,
+ prop: K
+): obj is T & Record<K, unknown> => {
+ return Object.prototype.hasOwnProperty.call(obj, prop);
+};
0 commit comments