{"id":1482,"date":"2024-11-10T08:50:29","date_gmt":"2024-11-10T00:50:29","guid":{"rendered":"https:\/\/fwq.ai\/blog\/1482\/"},"modified":"2024-11-10T08:50:29","modified_gmt":"2024-11-10T00:50:29","slug":"why-sethas-is-faster-than-arrayincludes-for-finding-items","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/1482\/","title":{"rendered":"Why Sethas() is Faster Than Arrayincludes() for Finding Items"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173044606088666.jpg\" class=\"aligncenter\" title=\"Why Sethas() is Faster Than Arrayincludes() for Finding Items\u63d2\u56fe\" alt=\"Why Sethas() is Faster Than Arrayincludes() for Finding Items\u63d2\u56fe\" \/><\/p>\n<p>\u6709\u65f6\uff0c\u5728\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6027\u80fd\u6700\u7ec8\u6210\u4e3a\u5173\u952e\u6216\u81f3\u5c11\u662f\u91cd\u8981\u7684\u9a71\u52a8\u56e0\u7d20\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u6216\u5b9e\u65f6\u8981\u6c42\u65f6\u3002 javascript \u4e2d\u6700\u5e38\u89c1\u7684\u4efb\u52a1\u4e4b\u4e00\u662f\u68c0\u67e5\u96c6\u5408\u4e2d\u662f\u5426\u5b58\u5728\u67d0\u4e2a\u503c\u3002\u6700\u5e38\u7528\u7684\u4e24\u4e2a\u66ff\u4ee3\u65b9\u6cd5\u662f array.includes() \u548c set.has()\u3002\u4e24\u8005\u90fd\u6709\u6548\uff0c\u4f46\u5b9e\u9645\u4e0a\uff0cset.has() \u6bd4 array.includes \u6548\u679c\u66f4\u597d\u3002\u8ba9\u6211\u4eec\u6df1\u5165\u63a2\u8ba8\u5176\u539f\u56e0\uff0c\u5e76\u51b3\u5b9a\u4f55\u65f6\u5e94\u8be5\u4f7f\u7528\u4efb\u4e00\u66ff\u4ee3\u65b9\u6848\u3002<\/p>\n<h2> \u7406\u89e3 array.includes() \u4e0e set.has() <\/h2>\n<p>\u6709\u4e24\u4e2a\u65b9\u6cd5\u770b\u8d77\u6765\u7528\u6cd5\u76f8\u5f53\u7b80\u5355\uff0c\u4f46\u5b9e\u73b0\u4e0d\u540c\uff0c\u5373 array.includes() \u548c set.has()\u3002<\/p>\n<p><strong>array.includes()<\/strong><\/p>\n<p>includes() \u65b9\u6cd5\u68c0\u67e5\u7ed9\u5b9a\u503c\u662f\u5426\u5b58\u5728\u4e8e\u6570\u7ec4\u4e2d\u3002<br \/> \u5b83\u5229\u7528\u4e86 o(n) \u7684\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u4f7f\u5f97\u6570\u7ec4\u957f\u5ea6\u8d8a\u5927\uff0c\u68c0\u67e5\u503c\u6240\u9700\u7684\u65f6\u95f4\u5c31\u8d8a\u957f\u3002<br \/> \u8fd9\u662f\u56e0\u4e3a array.includes() \u4ece\u5934\u5230\u5c3e\u641c\u7d22\u6570\u7ec4\uff08\u6216\u76f4\u5230\u627e\u5230\u503c\uff09\uff0c\u6570\u7ec4\u8d8a\u5927\uff0c\u82b1\u8d39\u7684\u65f6\u95f4\u8d8a\u957f\u3002<\/p>\n<p><strong>set.has()<\/strong><\/p>\n<p>set \u7684 has() \u65b9\u6cd5\u4e5f\u4f1a\u68c0\u67e5\u7ed9\u5b9a\u503c\u662f\u5426\u5b58\u5728\uff0c\u4f46\u901f\u5ea6\u8981\u5feb\u5f97\u591a\u3002<br \/> set.has() \u4f9d\u8d56\u4e8e\u57fa\u4e8e\u54c8\u5e0c\u8868\u7684\u7ed3\u6784\uff0c\u8be5\u7ed3\u6784\u5141\u8bb8\u6052\u5b9a\u65f6\u95f4\u67e5\u627e\uff0c\u6216 o(1) \u65f6\u95f4\u590d\u6742\u5ea6\u3002<br \/> \u4e0e\u6570\u7ec4\u4e0d\u540c\uff0c\u96c6\u5408\u662f\u4e3a\u5904\u7406\u552f\u4e00\u503c\u800c\u6784\u5efa\u7684\uff0c\u56e0\u6b64\u5b83\u5185\u90e8\u4e0d\u4f1a\u6709\u91cd\u590d\u7684\u503c\uff0c\u5e76\u4e14\u5177\u6709\u66f4\u591a\u7684\u67e5\u627e\u65f6\u95f4\u3002<\/p>\n<h2> \u4e3a\u4ec0\u4e48 set.has() \u5bf9\u4e8e\u5927\u578b\u6570\u636e\u96c6\u66f4\u5feb <\/h2>\n<p>\u5f53\u60a8\u4f7f\u7528 set.has() \u65f6\uff0cjavascript \u53ef\u4ee5\u901a\u8fc7\u4e00\u6b21\u76f4\u63a5\u64cd\u4f5c\u627e\u5230\u8be5\u9879\u76ee\uff0c\u65e0\u8bba\u96c6\u5408\u4e2d\u6709\u591a\u5c11\u9879\u76ee\u3002\u4f8b\u5982\uff0c\u5728\u68c0\u67e5\u67d0\u4e2a\u503c\u662f\u5426\u5728\u5305\u542b\u4e00\u767e\u4e07\u7684\u96c6\u5408\u4e2d\u65f6\uff0cset.has() \u6d88\u8017\u7684\u65f6\u95f4\u5c06\u4e0e\u68c0\u67e5\u5341\u5b8c\u5168\u76f8\u540c\u3002<\/p>\n<p>\u53e6\u4e00\u65b9\u9762\uff0carray.includes() \u4ece\u5de6\u5230\u53f3\u987a\u5e8f\u68c0\u67e5\u6bcf\u4e2a\u5143\u7d20\uff0c\u76f4\u5230\u627e\u5230\u611f\u5174\u8da3\u7684\u9879\u76ee\u6216\u5230\u8fbe\u5176\u672b\u5c3e\u3002\u8fd9\u610f\u5473\u7740\u5b83\u7684\u5927\u5c0f\u8d8a\u957f\uff0c\u68c0\u67e5\u65f6\u95f4\u5c31\u8d8a\u957f\uff0c\u7279\u522b\u662f\u5728\u9879\u76ee\u63a5\u8fd1\u5c3e\u90e8\u7684\u60c5\u51b5\u4e0b\uff0c\u800c\u4e14\u80af\u5b9a\u662f\u5f53\u6709\u95ee\u9898\u7684\u9879\u76ee\u4e0d\u5b58\u5728\u65f6\u3002 <\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u4f8b\u5b50\uff1a<\/p>\n<pre>const bigarray = array.from({ length: 1000000 }, (_, i) =&gt; i);\nconst bigset = new set(bigarray);\n\nconst valuetofind = 999999;\n\n\/\/ array.includes (o(n)) - slower for large arrays\nconsole.time(\"array.includes\");\nbigarray.includes(valuetofind);\nconsole.timeend(\"array.includes\");\n\n\/\/ set.has (o(1)) - faster for large sets\nconsole.time(\"set.has\");\nbigset.has(valuetofind);\nconsole.timeend(\"set.has\");\n<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5f53\u60a8\u8fd0\u884c\u6b64\u547d\u4ee4\u65f6\uff0c\u60a8\u4f1a\u53d1\u73b0 set.has() \u5728\u5927\u578b\u6570\u7ec4\u4e0a\u7684\u6027\u80fd\u8fdc\u8fdc\u4f18\u4e8e array.includes()\u3002\u5b9e\u9645\u4e0a\uff0c\u8fd9\u79cd\u5dee\u5f02\u5f88\u53ef\u80fd\u4f1a\u8f6c\u5316\u4e3a\u66f4\u6d41\u7545\u7684\u52a8\u753b\u3001\u66f4\u5feb\u7684\u52a0\u8f7d\u65f6\u95f4\uff0c\u751a\u81f3\u66f4\u5c11\u7684\u670d\u52a1\u5668\u8d44\u6e90\u4f7f\u7528\u3002<\/p>\n<h3> \u4f55\u65f6\u4f7f\u7528 set.has() \u548c array.includes() <\/h3>\n<p>\u8fd9\u4e00\u5207\u90fd\u53d6\u51b3\u4e8e\u60a8\u60f3\u8981\u5b9e\u73b0\u7684\u76ee\u6807\u3002\u7b80\u5355\u603b\u7ed3\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li> <strong>\u4f7f\u7528 set.has() \u5982\u679c\uff1a<\/strong> -\u60a8\u6b63\u5728\u5904\u7406\u5927\u6570\u636e\u5e76\u8fdb\u884c\u5927\u91cf\u67e5\u627e\u3002<\/li>\n<\/ul>\n<p>-\u60a8\u6b63\u5728\u4f7f\u7528\u552f\u4e00\u503c\uff0c\u4f8b\u5982\u4e00\u7ec4\u552f\u4e00\u7684\u7528\u6237 id\uff0c<br \/> \u6807\u7b7e\u6216\u5173\u952e\u5b57\u3002<\/p>\n<p>-\u60a8\u4e0d\u4ecb\u610f\u5c06\u6570\u7ec4\u8f6c\u6362\u4e3a <br \/> \u7684\u5c11\u91cf\u524d\u671f\u6210\u672c \u8bbe\u7f6e\u4e3a\u5c3d\u91cf\u51cf\u5c11\u4ee5\u540e\u7684\u67e5\u627e\u6b21\u6570\u3002<\/p>\n<ul>\n<li> <strong>\u4f7f\u7528 array.includes() \u5982\u679c\uff1a<\/strong> &#8211; \u4f60\u7684\u6570\u636e\u96c6\u5f88\u5c0f\uff0c\u6027\u80fd\u5dee\u5f02\u662f \u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1\u3002<\/li>\n<\/ul>\n<p>-\u60a8\u53ea\u9700\u68c0\u67e5\u67d0\u4e2a\u9879\u76ee\u4e00\u6b21\u6216\u51e0\u6b21\uff0c\u56e0\u6b64\u6ca1\u6709<br \/> \u521b\u5efa\u96c6\u5408\u7684\u597d\u5904\u3002<\/p>\n<p>-\u60a8\u6b63\u5728\u5904\u7406\u91cd\u590d\u9879\uff0c\u8fd9\u662f\u96c6\u5408\u65e0\u6cd5\u5904\u7406\u7684\u3002<\/p>\n<h2> \u793a\u4f8b\u7528\u4f8b <\/h2>\n<p>\u5047\u8bbe\u60a8\u6b63\u5728\u5b9e\u73b0\u4e00\u4e2a\u7528\u6237\u641c\u7d22\u529f\u80fd\uff0c\u6839\u636e\u963b\u6b62\u7684\u5355\u8bcd\u5217\u8868\u8fc7\u6ee4\u59d3\u540d\u3002\u5982\u679c\u60a8\u6709\u6570\u767e\u4e2a\u88ab\u963b\u6b62\u7684\u5355\u8bcd\u5e76\u4e14\u7ecf\u5e38\u641c\u7d22\uff0c\u5219\u5bf9\u88ab\u963b\u6b62\u7684\u5355\u8bcd\u4f7f\u7528\u96c6\u5408\u53ef\u4ee5\u4f7f\u6bcf\u6b21\u641c\u7d22\u68c0\u67e5\u66f4\u5feb\uff1a<\/p>\n<pre>const blockedWords = new Set([\"spam\", \"test\", \"fakeuser\", \"bot\"]); \/\/ Small data, but scales well\nconst username = \"fakeuser42\";\n\nif (blockedWords.has(username)) {\n  console.log(\"Username is blocked\");\n} else {\n  console.log(\"Username is allowed\");\n}\n<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5373\u4f7f\u5728\u8f83\u5c0f\u7684\u60c5\u51b5\u4e0b\uff0cset \u4e5f\u6709\u52a9\u4e8e\u4fdd\u6301\u4e8b\u60c5\u7684\u9ad8\u6548\u6027\u548c\u53ef\u9884\u6d4b\u6027\u3002\u53e6\u5916\uff0c\u5982\u679c\u963b\u6b62\u7684\u5355\u8bcd\u5217\u8868\u589e\u957f\uff0c\u60a8\u5c31\u5df2\u7ecf\u62e5\u6709\u4e86\u4e00\u4e2a\u53ef\u6269\u5c55\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h2> \u8981\u70b9 <\/h2>\n<ul>\n<li>\n<p><strong>\u6027\u80fd<\/strong>\uff1aset.has() \u63d0\u4f9b o(1) \u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u5bf9\u4e8e\u8f83\u5927\u7684\u96c6\u5408\u6765\u8bf4\uff0c\u5b83\u6bd4 array.includes() (o(n)) \u5feb\u5f97\u591a<\/p>\n<\/li>\n<li>\n<p><strong>\u9002\u7528\u6027<\/strong>\uff1a\u96c6\u5408\u662f\u4e3a\u552f\u4e00\u503c\u800c\u8bbe\u8ba1\u7684\uff0c\u56e0\u6b64\u5b83\u81ea\u7136\u5730\u9488\u5bf9\u67e5\u627e\u8fdb\u884c\u4e86\u4f18\u5316\u3002\u6570\u7ec4\u5bf9\u4e8e\u91cd\u590d\u503c\u66f4\u7075\u6d3b\uff0c\u4f46\u5728\u68c0\u67e5\u662f\u5426\u5b58\u5728\u65f6\u901f\u5ea6\u8f83\u6162\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u53ef\u6269\u5c55\u6027<\/strong>\uff1a\u968f\u7740\u6570\u636e\u7684\u589e\u957f\uff0cset.has() \u7ee7\u7eed\u8868\u73b0\u826f\u597d\uff0c\u800c array.includes() \u4f1a\u53d8\u6162\u3002<\/p>\n<\/li>\n<\/ul>\n<h2> \u6700\u540e\u7684\u60f3\u6cd5 <\/h2>\n<p>\u5728 set.has() \u548c array.includes() \u4e4b\u95f4\u8fdb\u884c\u9009\u62e9\u65f6\uff0c\u4e86\u89e3\u6570\u636e\u96c6\u7684\u5927\u5c0f\u548c\u6027\u8d28\u59cb\u7ec8\u5f88\u91cd\u8981\u3002 array.includes() \u975e\u5e38\u9002\u5408\u5c0f\u578b\u6570\u636e\u96c6\uff0c\u4f46 set.has() \u5728\u901f\u5ea6\u81f3\u5173\u91cd\u8981\u7684\u60c5\u51b5\u4e0b\u662f\u4e00\u4e2a\u5b9d\u8d35\u7684\u5de5\u5177\u3002\u6b63\u786e\u7684\u6570\u636e\u7ed3\u6784\u53ef\u4ee5\u5e2e\u52a9\u4f18\u5316\u60a8\u7684 javascript \u5e94\u7528\u7a0b\u5e8f\uff0c\u4f7f\u5176\u66f4\u5feb\u3001\u66f4\u9ad8\u6548\uff0c\u800c\u65e0\u9700\u5bf9\u4ee3\u7801\u8fdb\u884c\u91cd\u5927\u66f4\u6539\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u6bcf\u5f53\u4f60\u53d1\u73b0\u81ea\u5df1\u5728\u68c0\u67e5\u67d0\u4e2a\u4e1c\u897f\u662f\u5426\u5b58\u5728\u65f6\uff0c\u4f60\u5e94\u8be5\u95ee\u81ea\u5df1\uff1a\u8fd9\u662f\u6570\u7ec4\u7684\u5de5\u4f5c\uff0c\u8fd8\u662f\u6211\u53ef\u4ee5\u4f7f\u7528\u96c6\u5408\u7684\u529b\u91cf\uff1f\u6b63\u786e\u5904\u7406\u5f88\u53ef\u80fd\u5c31\u662f\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u8981\u7684\u4e0d\u540c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fWhy Sethas() is Faster Than Arrayincludes() for Finding Items\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u65f6\uff0c\u5728\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6027\u80fd\u6700\u7ec8\u6210\u4e3a\u5173\u952e\u6216\u81f3\u5c11\u662f\u91cd\u8981\u7684\u9a71\u52a8\u56e0\u7d20\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u6216\u5b9e\u65f6\u8981\u6c42\u65f6\u3002 javascript \u4e2d\u6700\u5e38\u89c1\u7684\u4efb\u52a1\u4e4b\u4e00\u662f\u68c0\u67e5\u96c6\u5408\u4e2d\u662f\u5426\u5b58\u5728\u67d0\u4e2a\u503c\u3002\u6700\u5e38\u7528\u7684\u4e24\u4e2a\u66ff\u4ee3\u65b9\u6cd5\u662f array.includes() \u548c set.has()\u3002\u4e24\u8005\u90fd\u6709\u6548\uff0c\u4f46\u5b9e\u9645\u4e0a\uff0cset.has() \u6bd4 array.includes \u6548\u679c\u66f4\u597d\u3002\u8ba9\u6211\u4eec\u6df1\u5165\u63a2\u8ba8\u5176\u539f\u56e0\uff0c\u5e76\u51b3\u5b9a\u4f55\u65f6\u5e94\u8be5\u4f7f\u7528\u4efb\u4e00\u66ff\u4ee3\u65b9\u6848\u3002 \u7406\u89e3 array.includes() \u4e0e set.has() \u6709\u4e24\u4e2a\u65b9\u6cd5\u770b\u8d77\u6765\u7528\u6cd5\u76f8\u5f53\u7b80\u5355\uff0c\u4f46\u5b9e\u73b0\u4e0d\u540c\uff0c\u5373 array.includes() \u548c set.has()\u3002 array.includes() includes() \u65b9\u6cd5\u68c0\u67e5\u7ed9\u5b9a\u503c\u662f\u5426\u5b58\u5728\u4e8e\u6570\u7ec4\u4e2d\u3002 \u5b83\u5229\u7528\u4e86 o(n) \u7684\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u4f7f\u5f97\u6570\u7ec4\u957f\u5ea6\u8d8a\u5927\uff0c\u68c0\u67e5\u503c\u6240\u9700\u7684\u65f6\u95f4\u5c31\u8d8a\u957f\u3002 \u8fd9\u662f\u56e0\u4e3a array.includes() \u4ece\u5934\u5230\u5c3e\u641c\u7d22\u6570\u7ec4\uff08\u6216\u76f4\u5230\u627e\u5230\u503c\uff09\uff0c\u6570\u7ec4\u8d8a\u5927\uff0c\u82b1\u8d39\u7684\u65f6\u95f4\u8d8a\u957f\u3002 set.has() set \u7684 has() \u65b9\u6cd5\u4e5f\u4f1a\u68c0\u67e5\u7ed9\u5b9a\u503c\u662f\u5426\u5b58\u5728\uff0c\u4f46\u901f\u5ea6\u8981\u5feb\u5f97\u591a\u3002 set.has() \u4f9d\u8d56\u4e8e\u57fa\u4e8e\u54c8\u5e0c\u8868\u7684\u7ed3\u6784\uff0c\u8be5\u7ed3\u6784\u5141\u8bb8\u6052\u5b9a\u65f6\u95f4\u67e5\u627e\uff0c\u6216 o(1) \u65f6\u95f4\u590d\u6742\u5ea6\u3002 \u4e0e\u6570\u7ec4\u4e0d\u540c\uff0c\u96c6\u5408\u662f\u4e3a\u5904\u7406\u552f\u4e00\u503c\u800c\u6784\u5efa\u7684\uff0c\u56e0\u6b64\u5b83\u5185\u90e8\u4e0d\u4f1a\u6709\u91cd\u590d\u7684\u503c\uff0c\u5e76\u4e14\u5177\u6709\u66f4\u591a\u7684\u67e5\u627e\u65f6\u95f4\u3002 \u4e3a\u4ec0\u4e48 set.has() \u5bf9\u4e8e\u5927\u578b\u6570\u636e\u96c6\u66f4\u5feb \u5f53\u60a8\u4f7f\u7528 set.has() \u65f6\uff0cjavascript \u53ef\u4ee5\u901a\u8fc7\u4e00\u6b21\u76f4\u63a5\u64cd\u4f5c\u627e\u5230\u8be5\u9879\u76ee\uff0c\u65e0\u8bba\u96c6\u5408\u4e2d\u6709\u591a\u5c11\u9879\u76ee\u3002\u4f8b\u5982\uff0c\u5728\u68c0\u67e5\u67d0\u4e2a\u503c\u662f\u5426\u5728\u5305\u542b\u4e00\u767e\u4e07\u7684\u96c6\u5408\u4e2d\u65f6\uff0cset.has() \u6d88\u8017\u7684\u65f6\u95f4\u5c06\u4e0e\u68c0\u67e5\u5341\u5b8c\u5168\u76f8\u540c\u3002 \u53e6\u4e00\u65b9\u9762\uff0carray.includes() \u4ece\u5de6\u5230\u53f3\u987a\u5e8f\u68c0\u67e5\u6bcf\u4e2a\u5143\u7d20\uff0c\u76f4\u5230\u627e\u5230\u611f\u5174\u8da3\u7684\u9879\u76ee\u6216\u5230\u8fbe\u5176\u672b\u5c3e\u3002\u8fd9\u610f\u5473\u7740\u5b83\u7684\u5927\u5c0f\u8d8a\u957f\uff0c\u68c0\u67e5\u65f6\u95f4\u5c31\u8d8a\u957f\uff0c\u7279\u522b\u662f\u5728\u9879\u76ee\u63a5\u8fd1\u5c3e\u90e8\u7684\u60c5\u51b5\u4e0b\uff0c\u800c\u4e14\u80af\u5b9a\u662f\u5f53\u6709\u95ee\u9898\u7684\u9879\u76ee\u4e0d\u5b58\u5728\u65f6\u3002 \u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u4f8b\u5b50\uff1a const bigarray = array.from({ length: 1000000 }, (_, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1482","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/1482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=1482"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/1482\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=1482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=1482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=1482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}