{"description":"\u4e0e\u3048\u3089\u308c\u305f\u6570\u5024\u3092 0, 5, 10, 15, \u2026 \u3068 5\u523b\u307f\u306b\u4e38\u3081\u305f\u3044 \u7d50\u8ad6 const get5RoundNumber = (n: number) => Math.round(n * 2 / 10) * 10 / 2; 5 \u523b\u307f\u306e\u6570\u5024\u3092\u5f97\u308b\u306b\u306f 10 \u523b\u307f 0, 10, 20, 30, ... \u3092 2 \u3067\u5272\u308c\u3070 0, 5, 10, 15, \u2026 \u3068\u3068\u306a\u308b 0, 10, 20, 30,\u2026 \u3068\u3044\u3046\u6570\u5b57\u3092\u5f97\u308b\u306b\u306f\u3001\u56db\u6368\u4e94\u5165\u3067 0, 1, 2, 3,... \u3092\u4f5c\u308a 10 \u500d\u3059\u308c\u3070\u826f\u3044 \u6700\u7d42\u7684\u306b 2 \u3067\u5272\u308b\u306e\u3067\u3001\u3082\u3068\u306e\u6570\u5024\u3092 2\u500d\u3057\u3066\u304a\u304f 1\u306e\u4f4d\u3067\u56db\u6368\u4e94\u5165\u3059\u308b\u306b\u306f 1\u306e\u4f4d\u3092\u5c0f\u6570\u70b9\u7b2c\u4e00\u4f4d\u306b\u3059\u308b\u305f\u3081\u306b\u300110\u2026","provider_name":"Hatena Blog","width":"100%","provider_url":"https://hatena.blog","height":"190","published":"2024-07-08 08:30:00","blog_title":"\u304b\u3082\u30e1\u30e2","version":"1.0","blog_url":"https://chaika.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2024%2F07%2F08%2F083000\" title=\"JavaScript 5\u523b\u307f\u306e\u6570\u5024\u306b\u5909\u63db\u3057\u305f\u3044 - \u304b\u3082\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://m.media-amazon.com/images/I/61Z8lOjXtfL._SL500_.jpg","author_url":"https://blog.hatena.ne.jp/kikiki-kiki/","categories":["JavaScript","TypeScript"],"title":"JavaScript 5\u523b\u307f\u306e\u6570\u5024\u306b\u5909\u63db\u3057\u305f\u3044","type":"rich","url":"https://chaika.hatenablog.com/entry/2024/07/08/083000","author_name":"kikiki-kiki"}