<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>Array.from()はlengthプロパティが正の整数とみなせるオブジェクトを配列様オブジェクト（Array-like object、配列のようなオブジェクト）と判断していると考えられます。 真の配列様オブジェクトかの判断は反復可能オブジェクト以外を与えてArray.from()の結果が空配列か確認するのが確実ですが、ここではプロパティから判定する関数を紹介します。 const isArrayLikeObjectByProp = (o) =&gt; parseInt(o.length) &gt;= 0 console.log(isArrayLikeObjectByProp({})); // false…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2021%2F04%2F16%2F233258&quot; title=&quot;JavaScript 配列様オブジェクトかプロパティから判定する - potisanのプログラミングメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-04-16 23:32:58</published>
  <title>JavaScript 配列様オブジェクトかプロパティから判定する</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2021/04/16/233258</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
