{"id":1378,"date":"2025-04-14T10:39:00","date_gmt":"2025-04-14T01:39:00","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/?post_type=route&#038;p=1378"},"modified":"2025-07-14T10:40:45","modified_gmt":"2025-07-14T01:40:45","slug":"es2025-promise-try-%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a8%e6%b4%bb%e7%94%a8%e4%be%8b%ef%bd%9c%e5%90%8c%e6%9c%9f%e3%83%bb%e9%9d%9e%e5%90%8c%e6%9c%9f%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc%e5%87%a6","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/1378\/","title":{"rendered":"ES2025 Promise.try \u306e\u4f7f\u3044\u65b9\u3068\u6d3b\u7528\u4f8b\uff5c\u540c\u671f\u30fb\u975e\u540c\u671f\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u7d71\u4e00\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div>\n<h2>ES2025 \u65b0\u767b\u5834\u306e Promise.try \u306e\u4f7f\u3044\u65b9\u3068\u5b9f\u8df5\u4f8b\uff5c\u540c\u671f\u30fb\u975e\u540c\u671f\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u7d71\u4e00\u3059\u308b\u5b9f\u8df5\u30ac\u30a4\u30c9<\/h2>\n<\/p>\n<h3>\u306f\u3058\u3081\u306b\uff1a\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u30d0\u30e9\u3064\u304f\u7406\u7531\u3001\u5fc3\u5f53\u305f\u308a\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/h3>\n<p>JavaScript \u958b\u767a\u3067\u3088\u304f\u3042\u308b\u60a9\u307f\u306e\u3072\u3068\u3064\u304c\u300c\u540c\u671f\u95a2\u6570\u3068\u975e\u540c\u671f\u95a2\u6570\u306e\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u30d0\u30e9\u30d0\u30e9\u306b\u306a\u308b\u3053\u3068\u300d\u3067\u3059\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u540c\u671f\u51e6\u7406\u306b\u306f <code>try\/catch<\/code><\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u975e\u540c\u671f\u51e6\u7406\u306b\u306f <code>.catch()<\/code><\/strong><\/p>\n<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u3092\u540c\u6642\u306b\u6271\u304a\u3046\u3068\u3059\u308b\u3068\u3001\u30b3\u30fc\u30c9\u304c\u5197\u9577\u306b\u306a\u308a\u3001\u8aad\u307f\u3065\u3089\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001ES2025 \u3067\u5c0e\u5165\u3055\u308c\u308b <code>Promise.try()<\/code> \u3092\u4f7f\u3063\u3066\u3001\u540c\u671f\u30fb\u975e\u540c\u671f\u51e6\u7406\u306e\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3092\u4e00\u8cab\u3055\u305b\u3001\u3088\u308a\u30af\u30ea\u30fc\u30f3\u3067\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/strong><\/p>\n<hr>\n<h3>\u3053\u306e\u8a18\u4e8b\u3067\u89e3\u6c7a\u3067\u304d\u308b\u3053\u3068<\/h3>\n<ul>\n<li>\n<p><code>Promise.try()<\/code> \u304c\u4f55\u3092\u89e3\u6c7a\u3057\u3066\u304f\u308c\u308b\u306e\u304b<\/p>\n<\/li>\n<li>\n<p>\u540c\u671f\u30fb\u975e\u540c\u671f\u306e\u51e6\u7406\u3092\u540c\u3058\u3088\u3046\u306b\u6271\u3046\u65b9\u6cd5<\/p>\n<\/li>\n<li>\n<p>\u3088\u304f\u3042\u308b\u8aa4\u7528\u3068\u6ce8\u610f\u70b9<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2>Promise.try \u3068\u306f\uff1f\uff1aES2025 \u306e\u671f\u5f85\u306e\u65b0\u6a5f\u80fd\u3068\u69cb\u6587\u89e3\u8aac<\/h2>\n<h3>\u6982\u8981<\/h3>\n<p><code>Promise.try()<\/code> \u306f\u3001\u6e21\u3057\u305f\u95a2\u6570\u306e\u623b\u308a\u5024\u304c\u540c\u671f\u3067\u3082\u975e\u540c\u671f\u3067\u3082\u3001\u5fc5\u305a Promise \u3067\u30e9\u30c3\u30d7\u3057\u3066\u8fd4\u3059\u69cb\u6587\u3067\u3059\u3002<\/p>\n<pre><code>Promise.try(() =&gt; doSomething())\r\n  .then((result) =&gt; console.log(result))\r\n  .catch((error) =&gt; console.error('\u30a8\u30e9\u30fc:', error));<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f\u3001<code>doSomething()<\/code> \u304c\u540c\u671f\u7684\u306b\u5024\u3092\u8fd4\u3057\u3066\u3082\u3001\u975e\u540c\u671f\u7684\u306b Promise \u3092\u8fd4\u3057\u3066\u3082\u3001\u5e38\u306b\u305d\u306e\u7d50\u679c\u3092 Promise \u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5f8c\u7d9a\u306e <code>.then()<\/code> \u3084 <code>.catch()<\/code> \u3067\u4e00\u8cab\u3057\u305f\u51e6\u7406\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\n<p>\u540c\u671f\u51e6\u7406 \u2192 \u95a2\u6570\u5185\u3067 <code>throw<\/code> \u304c\u3042\u308c\u3070 <code>Promise.reject()<\/code> \u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>\u975e\u540c\u671f\u51e6\u7406 \u2192 \u8fd4\u3055\u308c\u305f Promise \u3092\u305d\u306e\u307e\u307e\u6271\u3044\u3001\u305d\u306e\u7d50\u679c\u3092\u5f8c\u7d9a\u306b\u6e21\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>\u5f93\u6765\u306e\u554f\u984c\u70b9\uff1a\u66f8\u304d\u65b9\u304c\u5206\u304b\u308c\u3066\u3044\u305f<\/h3>\n<pre><code>try {\r\n  const result = maybeSync();\r\n  if (result instanceof Promise) {\r\n    result.catch((e) =&gt; console.error('\u975e\u540c\u671f\u30a8\u30e9\u30fc:', e));\r\n  } else {\r\n    console.log('\u540c\u671f\u7d50\u679c:', result);\r\n  }\r\n} catch (e) {\r\n  console.error('\u540c\u671f\u30a8\u30e9\u30fc:', e);\r\n}<\/code><\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>maybeSync()<\/code> \u304c\u540c\u671f\u7684\u306a\u5024\u3092\u8fd4\u3059\u304b\u3001Promise \u3092\u8fd4\u3059\u304b\u306b\u3088\u3063\u3066\u3001\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001<\/p>\n<ul>\n<li>\n<p>\u540c\u671f\u304b\u975e\u540c\u671f\u304b\u3067\u30ed\u30b8\u30c3\u30af\u3092\u5206\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u30b3\u30fc\u30c9\u304c\u8907\u96d1\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>\u66f8\u304d\u65b9\u304c\u5897\u3048\u3066\u3057\u307e\u3044\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u304c\u4f4e\u4e0b\u3059\u308b\u539f\u56e0\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>Promise.try \u3067\u306e\u6539\u5584<\/h3>\n<pre><code>Promise.try(() =&gt; maybeSync())\r\n  .then((result) =&gt; console.log('\u7d50\u679c:', result))\r\n  .catch((err) =&gt; console.error('\u30a8\u30e9\u30fc:', err));<\/code><\/pre>\n<p><code>Promise.try()<\/code> \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001<code>maybeSync()<\/code> \u304c\u540c\u671f\u3067\u3082\u975e\u540c\u671f\u3067\u3082\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u7d71\u4e00\u3055\u308c\u305f\u8a18\u8ff0\u3067\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\n<p>\u3069\u3061\u3089\u306e\u51e6\u7406\u3067\u3082 <code>.catch()<\/code> \u304c\u4e00\u8cab\u3057\u3066\u4f7f\u3048\u308b\u305f\u3081\u3001\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u304c\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f59\u8a08\u306a\u5224\u5b9a\u3084 <code>try\/catch<\/code> \u304c\u4e0d\u8981\u306b\u306a\u308a\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2>\u5b9f\u4f8b\uff1a\u30ad\u30e3\u30c3\u30b7\u30e5\u4ed8\u304d\u30c7\u30fc\u30bf\u53d6\u5f97\u95a2\u6570\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0<\/h2>\n<h3>\u3088\u304f\u3042\u308b\u51e6\u7406<\/h3>\n<pre><code>function getUserData(userId) {\r\n  if (cache[userId]) {\r\n    return cache[userId]; \/\/ \u540c\u671f\u8fd4\u5374\r\n  }\r\n  return fetch(`\/api\/user\/${userId}`).then((res) =&gt; res.json()); \/\/ \u975e\u540c\u671f\r\n}<\/code><\/pre>\n<p>\u3053\u306e <code>getUserData<\/code> \u95a2\u6570\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u540c\u671f\u7684\u306b\u30c7\u30fc\u30bf\u3092\u8fd4\u3057\u3001\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f <code>fetch<\/code> \u3092\u4f7f\u3063\u3066\u975e\u540c\u671f\u7684\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3001\u3068\u3044\u3046\u540c\u671f or \u975e\u540c\u671f\u3069\u3061\u3089\u306e\u623b\u308a\u65b9\u3082\u3042\u308a\u5f97\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<hr>\n<h3>\u5f93\u6765\u306e\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h3>\n<pre><code>try {\r\n  const data = getUserData('123');\r\n  if (data instanceof Promise) {\r\n    data.then((res) =&gt; console.log(res)).catch((err) =&gt; console.error('\u975e\u540c\u671f\u30a8\u30e9\u30fc:', err));\r\n  } else {\r\n    console.log('\u540c\u671f\u7d50\u679c:', data);\r\n  }\r\n} catch (e) {\r\n  console.error('\u540c\u671f\u30a8\u30e9\u30fc:', e);\r\n}<\/code><\/pre>\n<p>\u5f93\u6765\u306e\u65b9\u5f0f\u3067\u306f\u3001<code>getUserData('123')<\/code> \u306e\u623b\u308a\u5024\u304c Promise \u304b\u3069\u3046\u304b\u3092 <code>instanceof Promise<\/code> \u3067\u5224\u5b9a\u3057\u3001\u305d\u308c\u305e\u308c\u7570\u306a\u308b\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>Promise.try \u306b\u3088\u308b\u6539\u5584<\/h3>\n<pre><code>Promise.try(() =&gt; getUserData('123'))\r\n  .then((res) =&gt; console.log('\u30c7\u30fc\u30bf\u53d6\u5f97\u6210\u529f:', res))\r\n  .catch((err) =&gt; console.error('\u30a8\u30e9\u30fc:', err));<\/code><\/pre>\n<p><code>Promise.try()<\/code> \u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u540c\u671f\u30fb\u975e\u540c\u671f\u3092\u610f\u8b58\u305b\u305a\u306b\u30a8\u30e9\u30fc\u51e6\u7406\u304c\u7d71\u4e00\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3069\u306e\u3088\u3046\u306a\u623b\u308a\u5024\u3067\u3042\u3063\u3066\u3082\u3001\u5e38\u306b Promise \u30c1\u30a7\u30fc\u30f3\u3068\u3057\u3066\u6271\u3048\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c9\u306e\u8907\u96d1\u3055\u304c\u5927\u5e45\u306b\u8efd\u6e1b\u3055\u308c\u307e\u3059\u3002<\/p>\n<hr>\n<h2>Promise.try \u306f\u3069\u3093\u306a\u5834\u9762\u3067\u4f7f\u3046\u3068\u4fbf\u5229\u304b\uff1f\uff08\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\uff09<\/h2>\n<p><code>Promise.try()<\/code> \u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5834\u9762\u3067\u7279\u306b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u30ad\u30e3\u30c3\u30b7\u30e5\u5c64\u306e\u5b9f\u88c5:<\/strong> \u4e0a\u8a18\u306e\u4f8b\u306e\u3088\u3046\u306b\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u30d2\u30c3\u30c8\u6642\u306f\u540c\u671f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u30df\u30b9\u6642\u306f\u975e\u540c\u671f\u3068\u3044\u3063\u305f\u51e6\u7406\u3092\u4e00\u8cab\u3057\u3066\u6271\u3044\u305f\u3044\u5834\u5408\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5b9f\u884c:<\/strong> \u30e6\u30fc\u30b6\u30fc\u304c\u63d0\u4f9b\u3059\u308b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u304c\u540c\u671f\u7684\u306b\u4f8b\u5916\u3092\u6295\u3052\u308b\u304b\u3001\u975e\u540c\u671f\u7684\u306a Promise \u3092\u8fd4\u3059\u304b\u5206\u304b\u3089\u306a\u3044\u5834\u5408\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u51e6\u7406\u306e\u62bd\u8c61\u5316:<\/strong> \u5185\u90e8\u7684\u306b\u540c\u671f\u30fb\u975e\u540c\u671f\u306e\u3069\u3061\u3089\u306e\u51e6\u7406\u304c\u542b\u307e\u308c\u308b\u304b\u5206\u304b\u3089\u306a\u3044\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u95a2\u6570\u3092\u3001\u5e38\u306b Promise \u30d9\u30fc\u30b9\u3067\u6271\u3044\u305f\u3044\u5834\u5408\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9:<\/strong> \u30a4\u30d9\u30f3\u30c8\u306b\u5fdc\u3058\u3066\u540c\u671f\u7684\u306b\u51e6\u7406\u304c\u5b8c\u4e86\u3059\u308b\u5834\u5408\u3068\u3001\u975e\u540c\u671f\u51e6\u7406\uff08API\u547c\u3073\u51fa\u3057\u306a\u3069\uff09\u304c\u5fc5\u8981\u306a\u5834\u5408\u306e\u4e21\u65b9\u306b\u5bfe\u5fdc\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u8a18\u8ff0\u3057\u305f\u3044\u5834\u5408\u3002<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2>\u3088\u304f\u3042\u308b\u8aa4\u89e3\u3068\u6ce8\u610f\u70b9<\/h2>\n<h3>Q1. <code>Promise.try()<\/code> \u306f\u3059\u3079\u3066\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u4f7f\u3048\u307e\u3059\u304b\uff1f<\/h3>\n<ul>\n<li>\n<p>\u3044\u3044\u3048\u3001<strong>2025 \u5e74\u6642\u70b9\u3067\u306f\u4e00\u90e8\u30e2\u30c0\u30f3\u74b0\u5883\u306e\u307f\u5bfe\u5fdc<\/strong>\u3057\u3066\u304a\u308a\u3001\u307e\u3060\u5e83\u304f\u666e\u53ca\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<\/li>\n<li>\n<p>\u73fe\u5728\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u3001Babel + Polyfill \u306b\u3088\u308b\u30c8\u30e9\u30f3\u30b9\u30d1\u30a4\u30eb\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>Q2. catch \u3092\u66f8\u304b\u306a\u304f\u3066\u3082\u3044\u3044\uff1f<\/h3>\n<ul>\n<li>\n<p><strong>\u5fc5\u305a <code>.catch()<\/code> \u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><\/p>\n<\/li>\n<li>\n<p><code>.catch()<\/code> \u3092\u66f8\u304b\u306a\u3044\u3068\u3001Promise \u304c Reject \u3055\u308c\u305f\u969b\u306b\u672a\u51e6\u7406\u306e Promise Rejection \u304c\u767a\u751f\u3057\u3001\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u3068\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h2>ChatGPT \u00d7 Promise.try\uff1aAI \u3067\u30a8\u30e9\u30fc\u539f\u56e0\u3082\u9ad8\u901f\u7279\u5b9a<\/h2>\n<p>\u975e\u540c\u671f\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u3089\u3001\u305d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092 ChatGPT \u306b\u30b3\u30d4\u30da\u3057\u3066\u539f\u56e0\u3092\u8abf\u67fb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>Promise.try(() =&gt; JSON.parse(undefined)).catch((err) =&gt; console.error('\u89e3\u6790\u30a8\u30e9\u30fc:', err));<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code>SyntaxError: Unexpected token u in JSON at position 0<\/code><\/pre>\n<p>\u3053\u3046\u3044\u3063\u305f\u30a8\u30e9\u30fc\u306e\u610f\u5473\u3084\u4fee\u6b63\u65b9\u6cd5\u3092 ChatGPT \u306b\u805e\u304f\u3053\u3068\u3067\u3001\u30c7\u30d0\u30c3\u30b0\u6642\u9593\u3092\u77ed\u7e2e\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u300cSyntaxError: Unexpected token u in JSON at position 0 \u306e\u610f\u5473\u3068\u4fee\u6b63\u65b9\u6cd5\u3092\u6559\u3048\u3066\u300d\u3068\u5c0b\u306d\u308b\u3053\u3068\u3067\u3001\u554f\u984c\u306e\u89e3\u6c7a\u306b\u5f79\u7acb\u3064\u3067\u3057\u3087\u3046\u3002<\/p>\n<hr>\n<h2>\u307e\u3068\u3081\uff1aPromise.try \u3067\u30a8\u30e9\u30fc\u51e6\u7406\u306e\u69cb\u9020\u3092\u6574\u7406\u3057\u3088\u3046<\/h2>\n<ul>\n<li>\n<p><code>Promise.try()<\/code> \u3092\u4f7f\u3048\u3070\u3001\u540c\u671f\uff0f\u975e\u540c\u671f\u306e\u533a\u5225\u3092\u610f\u8b58\u305b\u305a\u30011 \u3064\u306e\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u69cb\u6587\u3067\u6e08\u3080\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>\u30b3\u30fc\u30c9\u304c\u8aad\u307f\u3084\u3059\u304f\u306a\u308a\u3001\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306e\u6319\u52d5\u3082\u4e88\u6e2c\u3057\u3084\u3059\u304f\u306a\u308b\u305f\u3081\u3001\u958b\u767a\u52b9\u7387\u3068\u4fdd\u5b88\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p>AI \u3068\u306e\u9023\u643a\uff08ChatGPT\u306a\u3069\uff09\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30a8\u30e9\u30fc\u539f\u56e0\u306e\u7279\u5b9a\u3082\u3088\u308a\u8fc5\u901f\u306b\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<hr>\n<h3>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7<\/h3>\n<p><code>Promise.try()<\/code> \u3092\u3042\u306a\u305f\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5c0e\u5165\u3057\u3001\u3088\u308a\u5805\u7262\u3067\u30af\u30ea\u30fc\u30f3\u306a\u30b3\u30fc\u30c9\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>\n<p>\u5b9f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067 <code>Promise.try()<\/code> \u3092\u4f7f\u3063\u3066\u307f\u308b<\/p>\n<\/li>\n<li>\n<p>\u53e4\u3044\u30d6\u30e9\u30a6\u30b6\u5bfe\u5fdc\u306e\u305f\u3081\u306b Babel \u74b0\u5883\u3092\u6574\u5099\u3059\u308b<\/p>\n<\/li>\n<li>\n<p>\u3055\u3089\u306b\u6df1\u6398\u308a \u2192 <a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Promise\/try\" target=\"_blank\" rel=\"noopener\">MDN Web Docs: Promise.try()<\/a><\/p>\n<\/li>\n<li>\n<p>\u95a2\u9023\u60c5\u5831 \u2192 <a href=\"https:\/\/route-zero.com\/recruit\/route\/1212\/\">\u975e\u540c\u671f\u51e6\u7406\u306e\u57fa\u672c\u3092\u7406\u89e3\uff5csetTimeout\u30fbPromise\u30fbasync\/await\u306e\u9055\u3044\u3068\u4f7f\u3044\u65b9<\/a><\/p>\n<\/li>\n<li>\n<p>\u95a2\u9023\u60c5\u5831 \u2192 <a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/JavaScript\/Reference\/Statements\/try...catch\" target=\"_blank\" rel=\"noopener\">MDN Web Docs: try&#8230;catch<\/a><\/p>\n<\/li>\n<\/ul>\n<hr>\n<p><strong>\u540c\u671f\uff1f\u975e\u540c\u671f\uff1f\u3092\u6c17\u306b\u305b\u305a\u66f8\u3051\u308b\u30b3\u30fc\u30c9\u3078\u3002Promise.try \u306f\u3001\u3042\u306a\u305f\u306e\u958b\u767a\u3092\u3072\u3068\u3064\u524d\u3078\u9032\u3081\u3066\u304f\u308c\u307e\u3059\u3002<\/strong><\/p>\n<\/p>\n<\/div>\n","protected":false},"featured_media":1380,"template":"","_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/1378"}],"collection":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route"}],"about":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/types\/route"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media\/1380"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=1378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}