{
  "id": "apis",
  "name": "APIs",
  "path": "/apis/",
  "question": "Look up a method",
  "description": "API entries show the signature, one real input, and the value a caller actually receives. They separate what the platform returns from what a program often assumes it returns.",
  "entries": [
    {
      "id": "apis/array-from",
      "title": "Building Arrays with Array.from()",
      "url": "https://www.fieldnotely.xyz/apis/array-from/",
      "summary": "Array.from() builds a new array from an iterable by iterating Symbol.iterator, or from an array-like object by reading its length and indexed properties. It handles strings, Set, Map, generators, NodeList, and {length: n} objects, and throws TypeError for null or undefined.",
      "aliases": [
        "Array.from array-like",
        "convert iterable to array js"
      ],
      "kind": "reference",
      "topic": "javascript",
      "scope": "ECMAScript 2015+; browsers and Node.js",
      "updated": "2026-11-29"
    },
    {
      "id": "apis/urlsearchparams-getall",
      "title": "Reading Repeated Parameters with URLSearchParams.getAll()",
      "url": "https://www.fieldnotely.xyz/apis/urlsearchparams-getall/",
      "summary": "get() returns only the first value for a repeated query key, while getAll() returns every value in order as an array. getAll() also returns an empty array for a missing key, where get() returns null.",
      "aliases": [
        "URLSearchParams get first value",
        "query string repeated keys"
      ],
      "kind": "reference",
      "topic": "url",
      "scope": "WHATWG URL; browsers and Node.js",
      "updated": "2026-11-29"
    },
    {
      "id": "apis/pathlib-resolve",
      "title": "Resolving Paths with pathlib.Path.resolve()",
      "url": "https://www.fieldnotely.xyz/apis/pathlib-resolve/",
      "summary": "resolve() makes a path absolute, collapses dot segments, expands symbolic links, and applies on-disk case on Windows. With the default strict=False the path need not exist, but resolution still reads the filesystem and can raise OSError.",
      "aliases": [
        "Path.resolve strict=False",
        "python resolve symlink"
      ],
      "kind": "reference",
      "topic": "python",
      "scope": "Python 3.6+; pathlib",
      "updated": "2026-11-29"
    },
    {
      "id": "apis/fetch-response-ok",
      "title": "When Is Response.ok True?",
      "url": "https://www.fieldnotely.xyz/apis/fetch-response-ok/",
      "summary": "Response.ok is true exactly when the HTTP status is 200 through 299, and false for every other status. It does not validate the body, content type, or application-level success, and opaque responses report ok as false.",
      "aliases": [
        "fetch ok status 200 299",
        "response.ok false 404"
      ],
      "kind": "reference",
      "topic": "fetch",
      "scope": "Fetch API in browsers and modern runtimes",
      "updated": "2026-11-29"
    }
  ]
}
