{
  "_id": "reakit-utils",
  "maintainers": [
    {
      "name": "diegohaz",
      "email": "hazdiego@gmail.com"
    }
  ],
  "keywords": [
    "reakit",
    "react",
    "utils"
  ],
  "dist-tags": {
    "latest": "0.15.2",
    "next": "0.16.0-alpha.1"
  },
  "author": {
    "name": "Diego Haz",
    "email": "hazdiego@gmail.com",
    "url": "https://github.com/diegohaz"
  },
  "_rev": "37-fab977dc2229490576a7b45947786535",
  "description": "Reakit utils",
  "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [applyState](#applystate)\n-   [canUseDOM](#canusedom)\n-   [closest](#closest)\n-   [contains](#contains)\n-   [createEvent](#createevent)\n-   [createOnKeyDown](#createonkeydown)\n-   [isUA](#isua)\n-   [ensureFocus](#ensurefocus)\n-   [fireBlurEvent](#fireblurevent)\n-   [fireEvent](#fireevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [flatten](#flatten)\n-   [getActiveElement](#getactiveelement)\n-   [getDocument](#getdocument)\n-   [getNextActiveElementOnBlur](#getnextactiveelementonblur)\n-   [getWindow](#getwindow)\n-   [hasFocus](#hasfocus)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [isButton](#isbutton)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPortalEvent](#isportalevent)\n-   [isPromise](#ispromise)\n-   [isSelfTarget](#isselftarget)\n-   [isTextField](#istextfield)\n-   [matches](#matches)\n-   [normalizePropsAreEqual](#normalizepropsareequal)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [shallowEqual](#shallowequal)\n-   [\\_\\_deprecatedSplitProps](#__deprecatedsplitprops)\n-   [splitProps](#splitprops)\n-   [tabbable](#tabbable)\n-   [toArray](#toarray)\n-   [types](#types)\n-   [useForkRef](#useforkref)\n-   [useIsomorphicEffect](#useisomorphiceffect)\n-   [useLiveRef](#useliveref)\n-   [useSealedState](#usesealedstate)\n-   [useUpdateEffect](#useupdateeffect)\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **React.SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### canUseDOM\n\nIt's `true` if it is running in a browser environment or `false` if it is not (SSR).\n\n#### Examples\n\n```javascript\nimport { canUseDOM } from \"reakit-utils\";\n\nconst title = canUseDOM ? document.title : \"\";\n```\n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\n### contains\n\nSimilar to `Element.prototype.contains`, but a little bit faster when\n`element` is the same as `child`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { contains } from \"reakit-utils\";\n\ncontains(document.getElementById(\"parent\"), document.getElementById(\"child\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit?** \n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createEvent(el, \"blur\", { bubbles: false }));\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### createOnKeyDown\n\nReturns an `onKeyDown` handler to be passed to a component.\n\n#### Parameters\n\n-   `options` **Options**  (optional, default `{}`)\n    -   `options.keyMap`  \n    -   `options.onKey`  \n    -   `options.stopPropagation`  \n    -   `options.onKeyDown`  \n    -   `options.shouldKeyDown`   (optional, default `()=>true`)\n    -   `options.preventDefault`   (optional, default `true`)\n\nReturns **React.KeyboardEventHandler** \n\n### isUA\n\nChecks if a given string exists in the user agent string.\n\n#### Parameters\n\n-   `string` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.preventScroll`  \n    -   `$1.isActive`   (optional, default `hasFocus`)\n\n#### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### fireBlurEvent\n\nCreates and dispatches a blur event in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `eventInit` **FocusEventInit?** \n\n#### Examples\n\n```javascript\nimport { fireBlurEvent } from \"reakit-utils\";\n\nfireBlurEvent(document.getElementById(\"id\"));\n```\n\n### fireEvent\n\nCreates and dispatches `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### getDocument\n\nReturns `element.ownerDocument || document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### getNextActiveElementOnBlur\n\nCross-browser method that returns the next active element (the element that\nis receiving focus) after a blur event is dispatched. It receives the blur\nevent object as the argument.\n\n#### Parameters\n\n-   `event` **(React.FocusEvent | [FocusEvent](https://developer.mozilla.org/docs/Web/API/FocusEvent))** \n\n#### Examples\n\n```javascript\nimport { getNextActiveElementOnBlur } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\nelement.addEventListener(\"blur\", (event) => {\n  const nextActiveElement = getNextActiveElementOnBlur(event);\n});\n```\n\n### getWindow\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### hasFocus\n\nChecks if `element` has focus. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocus } from \"reakit-utils\";\n\nhasFocus(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### hasFocusWithin\n\nChecks if `element` has focus within. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\nisButton(document.querySelector(\"div[role='button']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element), [Event](https://developer.mozilla.org/docs/Web/API/Event)>** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\n#### Examples\n\n```javascript\nimport { isTextField } from \"reakit-utils\";\n\nisTextField(document.querySelector(\"div\")); // false\nisTextField(document.querySelector(\"input\")); // true\nisTextField(document.querySelector(\"input[type='button']\")); // false\nisTextField(document.querySelector(\"textarea\")); // true\nisTextField(document.querySelector(\"div[contenteditable='true']\")); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### normalizePropsAreEqual\n\nThis higher order functions take `propsAreEqual` function and\nreturns a new function which normalizes the props.\n\nNormalizing in our case is making sure the `propsAreEqual` works with\nboth version 1 (object spreading) and version 2 (state object) state passing.\n\nTo achieve this, the returned function in case of a state object\nwill spread the state object in both `prev` and \\`next props.\n\nOther case it just returns the function as is which makes sure\nthat we are still backward compatible\n\n#### Parameters\n\n-   `propsAreEqual` **function (prev: O, next: O): [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\nReturns **function (prev: PropsWithAs&lt;O, T>, next: PropsWithAs&lt;O, T>): [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **T** \n-   `index` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `objA` **Record&lt;any, any>?** \n-   `objB` **Record&lt;any, any>?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### \\_\\_deprecatedSplitProps\n\nSplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n**Meta**\n\n-   **deprecated**: will be removed in version 2\n\n\n### splitProps\n\nSplits an object (`props`) into a tuple where the first item\nis the `state` property, and the second item is the rest of the properties.\n\nIt is also backward compatible with version 1. If `keys` are passed then\nsplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)**  (optional, default `[]`)\n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ state: { a: \"a\" }, b: \"b\" }); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n### tabbable\n\n#### isFocusable\n\nChecks whether `element` is focusable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getClosestFocusable\n\nReturns the closest focusable element.\n\n##### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **T** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n#### SetState\n\nState hook setter.\n\nType: React.Dispatch&lt;React.SetStateAction&lt;T>>\n\n### useForkRef\n\nMerges up to two React Refs into a single memoized function React Ref so you\ncan pass it to an element.\n\n#### Parameters\n\n-   `refA` **React.Ref&lt;any>?** \n-   `refB` **React.Ref&lt;any>?** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = React.forwardRef((props, ref) => {\n  const internalRef = React.useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useIsomorphicEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side\nrendering.\n\n### useLiveRef\n\nA `React.Ref` that keeps track of the passed `value`.\n\n#### Parameters\n\n-   `value` **T** \n\nReturns **React.MutableRefObject&lt;T>** \n\n### useSealedState\n\nReact custom hook that returns the very first value passed to `initialState`,\neven if it changes between re-renders.\n\n#### Parameters\n\n-   `initialState` **SealedInitialState&lt;T>** \n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **React.EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
  "repository": {
    "type": "git",
    "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
  },
  "license": "MIT",
  "versions": {
    "0.0.1": {
      "name": "reakit-utils",
      "version": "0.0.1",
      "description": "",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "author": "",
      "license": "ISC",
      "_id": "reakit-utils@0.0.1",
      "_npmVersion": "6.4.1",
      "_nodeVersion": "10.15.3",
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "dist": {
        "integrity": "sha512-Lef40Bg+tEBIt8MPudluhXRTsPs0b+jSOQUxDv5BPPOZi5aofiVjsDD11G3S4aNLwuP8SzAzZJ910eNNWpMTOg==",
        "shasum": "789bc76a6b7801b974de3c423b727100bade485e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.0.1.tgz",
        "fileCount": 1,
        "unpackedSize": 208,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/XtpCRA9TVsSAnZWagAAlbUP/18/uUyS8vCXy7UDkiL4\nUckRqoHRVUVRzxY+SUhSNmvBsxi9wwp/0dw4wh5RBCUBu5G4IaTfoScmzAy2\nXVTm4s/k4qAPCmYdCoNxd7pbGOvzQVc434ZFZ8sL1vu+cSQJEGi2a4fe/NWq\n9OIDLMi6+PjvpchXsWRqVo3rEX7IzXpSGHk3dt9yZwl+ePXYL7kTrnfsxlTu\nwh1flslu4C8ALe89z/rrS9czyCdlEZPOT5zVAsBzHd/x0qLyUBzrei4V+AmV\n1YqUHQ5qj4t3X73WqQaK1+3UKFepGM7aTDYojk/jdpHVU6Oyeod1+DxwrIgS\ns3tKLovFa6ioAhSb77chQ2kOzNP1Kj3WtoIjtuuR9JLaFDXbBfcwnU8jcEzj\nIrV/KlMzV2/dF2TU9/L4uazHb4N7BEUcpHKbfhsn3kKlnAs+KQQHMNqEXNCi\nLQtmT+jZTrWvNLkEmU3qJ4qu91t4CqvqTRG2Xhg9s/lGEtwdGvU9FhnTc4YI\nB3/g2lYytLhBkNSUt/fK+bb4cLujMEMP1XKL0SYoQO8FjmQxkS4Vj12uOi0d\nM6WZLVySJPu9vpwv8fxCLz1AI4Vd5RuGQ1pHlF6eT/ijFV72ylbNb30AdGH5\nvKoNe0R7F/8ubtWpFHUKy1J7bUGnSeAtNyDFWC42vTOaqHvkbKL95/2E+WOk\nS204\r\n=2IJn\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQD+/ZD44mEB1TLIIpl/ZGJ3DQ/zbuq75xKgQOJc3GeA0QIhALR5j2Zpt8hCTytbUpwtTlTDcbqBQrKMZK201o7ubl+w"
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.0.1_1560116073356_0.41586503841849054"
      },
      "_hasShrinkwrap": false
    },
    "0.6.1": {
      "name": "reakit-utils",
      "version": "0.6.1",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "2a3d5f88985e4fb5127201e2bfcd737abc6ee249",
      "_id": "reakit-utils@0.6.1",
      "_nodeVersion": "10.15.3",
      "_npmVersion": "lerna/3.15.0/node@v10.15.3+x64 (darwin)",
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "dist": {
        "integrity": "sha512-vLx7IJKlelo7JRc3gsDwsPaBFN2IXw9S8vYTj2+UzTs98+3YCkd7DGnVBJDk6TmEhMmKx46iWSVk0iFzftlYRw==",
        "shasum": "38c4e4634cac01823d1c8c9c0b0cd88d8b56ee47",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.6.1.tgz",
        "fileCount": 149,
        "unpackedSize": 291114,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdDu9PCRA9TVsSAnZWagAAcE8P/iNt48rZ9BS9WLqPtMdA\ntJZUyg/ezuyozg5oWldngUTGoRNZHECyl1Wbr/dM8d4fsb4x+vP2BX2Z7gfZ\nDu8RLPwduQFDkuTvbUMw4zxGH0hh3zEXy7+TZ88+JCoKBI4OjPlTWymd8wbm\n3CAESOpUssGWoJEI2/TJ8rvVRXVPX4yJTWgCxLERWMbXYevZDffS2Oodzmbz\nRRtPxV0Brpte9Oz/X7pSdLpeSJe3TQ7my1P6E7K5KRAzcqqmK+ZWF/m6m5G8\nzFD/w+KUxCW2qirSMr2+F6iJ+CcGYawyFEGcP4nZeouRk+j1fSVwqXCyAD2L\nVu/BVfc8tgZn3Zmjz5lE++CyVr9IaHrxjR62E91CLgFv6RcDxZ373NzgEtXu\nfJ3KLGtUxyphybpNv9TzvNWNgPM1OVtE9/BZe9MBPxWeVsr635HTm2LyzqM4\n8z0Rg7BEslu7+ggWxs0Lql+XFjWqwNtXd/lIkTsoQvi2QIGiwq7u2rjEQctl\nlsuFMNpdKg3Krnuc5Tnj2DIXKz4ia+FIQSFv0OZbXTJSw5Ky2E1+dGy+csFs\nyMrX8SzEZXqxNcMH5cr02ZjqxwG0pjOgMyOP1S59c+btKpePREdSWm+4VK1a\nFqqFqFu2i2qWH9ZmDgeIGBFUrFoKzbFE7Dh/E6Wqv08GLM32Hh47zw3YGcNk\nyqzR\r\n=lvK6\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQC8Bri4l1ZMzk0wkS6bY3VY/v++uyvGwMi+6Gdad4CgeQIgPQpeZFuTqznDW4aADzLEO/y06txW66bklonggjDukCM="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.6.1_1561259855100_0.2939942900299517"
      },
      "_hasShrinkwrap": false
    },
    "0.6.2": {
      "name": "reakit-utils",
      "version": "0.6.2",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "f0edc09db25e86b822cb7072410145c7d990efbe",
      "_id": "reakit-utils@0.6.2",
      "_nodeVersion": "10.15.3",
      "_npmVersion": "lerna/3.15.0/node@v10.15.3+x64 (darwin)",
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "dist": {
        "integrity": "sha512-sEVOBN6ykA/FcDtc0hXxB4UiqP4Vns4n7tbcmPd9Qu1Ih61BeJV8DbRZyeOqqZzjL/lPOdiBr2jtakPtfSJDDw==",
        "shasum": "ac8143a349ce53e1eb6e0d408d6cd97d22b0ef2c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.6.2.tgz",
        "fileCount": 149,
        "unpackedSize": 291434,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFIDZCRA9TVsSAnZWagAA5oUP/1RmxJC/D3ivVdLPP6kG\n5B4QEe8/XWpympd4Qrapk11MtX3NhpI0cqwn0JLZRPHG7X4g/530JAvTeHDK\nM/JFU6LCsu6JK3hib2MbpCN9xx5txHIo1EPiOAldbo05i+4pUKrZWJpKjUEz\nla88z1W9f1I2mY5N5uAtNSG5VNBverwVikJt+0FbgQ1AMHJ1jptHMRCo9vWR\n8BxhZnWi0QvX+tlCo6q2gwkEP6wcqsDOc8PTMk/AZCPWTDl47Vc9dn5xu2zS\n6NqCi60mMk9UUV1hd5WwW60/myBCOxN71XXoPUUEXd7xtyaLLzLmYXKKualT\nUqGk0m/TJcDteKuTVCFtqnydmC53pyx1ElLhnKz/cSOdY6txO8AjbRTdWXEW\nGVbcN9HmuVcvFXJT9Gryt7xHixCxuZKN0dDDlRFm7aNZuz9yuJWERVzgMBm6\nQeCf3VVotwQFtz5b+G+uURjpaYVStZ7Ch+O1z/6eLtj21lO8c0XHNXFEhEDi\nUPon5zW78q7P1ARvs+9idzDq2yaC6uq5p/4DqfsP/Y1ZCkpETXD3XcThdiW6\n4Sz1aH86ZsGfai+S0s1u2Y/ZfYH1NmiG1S1ecskZMt+s/aE9x6OHOxCLe5fk\n+SHOKviTLBS4lWV2LXamQ2c+FR9ofsfSRxjC8CfygqdtJmI9uaErALVQ5lLc\ncVS5\r\n=ePP+\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHIFGNTYc+TITMjToZ76dQIvabSXdhB+bTFMMdAlARXWAiEAru3NfELYEA4Mdq/dNGzyF1jDFp0GNIzXLn6+VzcmV/s="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.6.2_1561624793299_0.9188950489357648"
      },
      "_hasShrinkwrap": false
    },
    "0.6.3": {
      "name": "reakit-utils",
      "version": "0.6.3",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "c2fb790b3a92211382c7e7a2bf751d0d723f62c3",
      "_id": "reakit-utils@0.6.3",
      "_nodeVersion": "10.15.3",
      "_npmVersion": "lerna/3.16.4/node@v10.15.3+x64 (darwin)",
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "dist": {
        "integrity": "sha512-+71mhRmk+I+q0ytVnfLI9b0z/HhlJW8hCSvJfBBxzsXTv+2WNRUQVELxOtRlHjh3gOUpStdh2lqOy1Fv+V1isw==",
        "shasum": "936a92df5e9e5153138b77f33f74222b9655c740",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.6.3.tgz",
        "fileCount": 161,
        "unpackedSize": 278160,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdYxilCRA9TVsSAnZWagAA3tgP/36J6TGqL84dUo9IeB+l\nBTo9WzgUo9TGJMw1wlDC8MbJPY3KWdh5D5da8BS4S8c71rExIqeSl12cANTa\n4VSUb08Bqs6z4df5NfH/HWg0Km7AlGANdFFV4u93w7HrjS8xq7t5Eimv8TJa\n6bfLNXDSbpeC8JIjVqNAMMVW1hZSNxBKLN3MJaB3yDnLRFw31qigmFULLTdr\n8GlNgoejlaP/x2mkDZbhuRccKP852jVbyODFeSG2DLU3La9+fHISgiwb6jBK\nXnJHCn7oELp5ypeR8jLlZLoo4d65GN6P5014Rp+Sx1WKLEhoymfpsk53orhc\nF97tBNaKkx5acJOi75eHyf9KLrNbj+mGgY7pBrQH3N3ZJ5yM9WHOxi6RXZSf\nOoPd/P7TzfCH83QJnOyclWi2UuH1426m6D4qGoGQTDCgljp3L7KrRo3jlhPt\n2QBTe6h6Lts0GH5Hp+kBiG2U7C4HjBK76EEVtckXi58SAnQcU6nbdX39Dop/\nNpwc1365ZAv0ALtVk6JHFamWwUoocmpzloCu1wRxSyRiTyoOtNl+oGL1DC7f\nntJdST0Zj54gKNMUVlkUCkuUJswz9D/jyJnKx+HiG8B+d5SMe3kHjo5QDEru\nMli0zUjQIpjoqXeLyfmECsukbeblE1JCAQlPnSfPSlzI2yIksJdg/y96a7Jn\nBegz\r\n=5sXr\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCICiCAw7Lmw0CgKWk6RE9mlWh8f7dbJwmdKMIFPOmNskdAiEAlS+/q765a3T/kk+TvNQFZivkU9xAAVSA0NUDnX1kaRo="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.6.3_1566775460764_0.013254558224634616"
      },
      "_hasShrinkwrap": false
    },
    "0.6.4": {
      "name": "reakit-utils",
      "version": "0.6.4",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "_id": "reakit-utils@0.6.4",
      "_nodeVersion": "10.16.3",
      "_npmVersion": "6.9.0",
      "dist": {
        "integrity": "sha512-sOwxhRHvYI17gyYh8aE+mCEpHXhHmLPlXT6xFUR61+qvWIC9YwXHM3Iw2xEY6CLIJd7sVxV5L/34QO1qbWW3UA==",
        "shasum": "1b2d1589e9798099ff518f4b936c827cb68c6dca",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.6.4.tgz",
        "fileCount": 161,
        "unpackedSize": 268356,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg8kaCRA9TVsSAnZWagAAbToQAJANMkjq7JdLrM3SumIJ\n+9ZT5ELmH1f8zHAB1fs0P4NqYaEYg7JgwbpOCoSRxPqewmgVqnEWJsLaNbDY\n5jOZ/hWKLfRdWYfDFTPqUx+xMEEHRRScnJnF1MiaHw7fR2NdhwIm4ZWAfLFy\n3YMqCduaFlXqV/kbF+dndAHjE6adiEAPEN8ssdLcAt2k2iMExfRCBcur83Vh\nV571I0GL8CS+71W8Wxa5Sr6EAS6XZV7SBnQ40QY9IjhTf1wi3ydDF0w0MT4G\ny0uKEmJOGDYHjtVAUytCk41UgAsyPj+cOfiHhmrqS3KdMDzQGae98LWV9wJI\nTWNIuACHU9o5Q8naw/iquBvPMnp75xVJzFIs588XJo4w4S0xobbUs5FXqybR\ngR9gaC6FgL3/hmCkgDNVDmeFPyD4oIk1/hMszyhyPB6pVSWyppGtu22SKy15\nH7ceSKkDmbo6WxZl5CnFAol8CPq3d4HdRsFZdAVVvFlVQkVocl9GtpFVG6so\n/8Z6En5+RK1F4Fz2LRKJ50q8VepKaPgA/Mc0OsmmVFVhqW9/XXOUGli3GirE\npXUKTatMhy861Ye1QTd2arT6+uXbhC9NN5rIAZudGa17NO1q6K1YG8dmkaF/\nUOPTk4HHovcHPHbDwdSQS8XsHYXYUlfzzI/BLEUYzXpCO+ky1klGMA2XLzdV\nUXJQ\r\n=cM2r\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQD3au6lD6PZ59gGP4vPSbNUuLZcQMgBi7TZEyIflzRRaQIhANCLa7LaoD6ZGGUk39MIZ6TDZaVzuI/CyS2s1pjiMcyp"
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.6.4_1568917786371_0.5502888455729891"
      },
      "_hasShrinkwrap": false
    },
    "0.6.5": {
      "name": "reakit-utils",
      "version": "0.6.5",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "82a1dfc8e21b7394ce8a0a402725011177abc8f7",
      "_id": "reakit-utils@0.6.5",
      "_nodeVersion": "10.16.3",
      "_npmVersion": "lerna/3.16.4/node@v10.16.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-EJz8A3reLagPuVXRXBd6wZ32J4EtoKnWLcu0bnJuJ0TruIV00GPRLNJCCCYJBnkXiE9rPr+OijX4U57wZIzULQ==",
        "shasum": "fd71ce80ac278f3da5c73cb1fc8233b52079438e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.6.5.tgz",
        "fileCount": 166,
        "unpackedSize": 271807,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdi+O5CRA9TVsSAnZWagAAiuMP/RlWY8OnFk1P6wXUqIkI\nJpPwPpz/iRQAhWX/FxVnVcXp3CELegN+LbrHkYb1/ESraxbo23HEsHq47KH8\nEphlOF4vHx5e2RnZvMlEoP3eJGQ6pQB9BVz1YgwtMnkzMpnxxI2n5wAr/o27\nBuliVdLYhPBlKL0AR9xiD0r8lL1s+W2AUiDqibj+g0WONWFYZ0m0koml6P4t\nuLTciQt+FBCUvniJb9Ojg74jJgmlOTXddJoLn9akd7GvaQsG4uIxL3nrP40v\nht4gXJvbawgLlvjFMhc0T5PeJs8AwffBKdq01MuH/xy97kUdUYCT92NwLRyO\nmOMqngo/XSCXG8yQB+GEF/8V++y0Y5IXegkbiK0n+5GVmiO0fzR3VOb+2XMp\nbmWoQdKaGBuj1koEFFI9H2Xm0DzwHjKCWIUIiHfzedWi168KuzbkMbMI97cO\nlz+J5k54J6TNHERjSDeyG3Jd25+l4aby8/Qq0B6P5J1nyMqPsGKtcEH26EC8\n6ffXRGNCRfJIMT8QVpEC7Lzu929pPNkH9K4l7iXNcMfj4yGp0sMcH0FzHzV1\nrbc75ILPO9YTShLIwAXUJahpeqnMCrcc/xAd2l4suMiny0xvgTaFZQxVvlDq\nwB0gUmOnhI5iBj5aZeLVEJlSyB57N4bh0LyZYcUwizBBK9oTmidPNLn3V5iD\nOJ4o\r\n=lUpc\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIGkvCAYSFuXQJp6kRt3wfkjNb1zOPJ+LRDeGyP+6aHNOAiA0rUVpTHUPGqJACBHIFzNWjsG4uwoDuKOcluqINv9oUA=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.6.5_1569448888919_0.5786471447367283"
      },
      "_hasShrinkwrap": false
    },
    "0.6.6": {
      "name": "reakit-utils",
      "version": "0.6.6",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "b8ff9c2222dc20194983e5ad58ece7bef88012a0",
      "_id": "reakit-utils@0.6.6",
      "_nodeVersion": "10.16.3",
      "_npmVersion": "lerna/3.17.0/node@v10.16.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-YbyHQ310biVmDkhl4wRhXMvn2cl4ooL2nlpfI753dwPJxEsSqvyayhqLth/j+a4+44J0YeqBCCH3LDoYBrGg2Q==",
        "shasum": "c6bff99b8ce15339968ea65643468c9cd193e242",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.6.6.tgz",
        "fileCount": 172,
        "unpackedSize": 274847,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdoV0OCRA9TVsSAnZWagAA68YP/AtCiyx94VwGpRbEYPD1\nGGET7fidWd4icENT2b32jDfM8rmd0wURtDvzzBApcQHZ5raJBIfXsfeZFwaU\n9VfBuCQAGqOSfy9MwP3pfPJPZvpwqn/X2Zh0Cv0I7gwMtX6dR7UAY2d7VFNI\nWTHxvHfbuUSJs/ljLwfJYLV/dOkzpS5JZKWgCl3e4a3EX6R7Mr+bW9B15unI\nDk4tM/R7ifgWtxaBZqkitmuvGOxcqR1VTyBwAVGspmqCAlWIJQR8Ky8fAOuc\nK62XSBb0A77ztYZr8+b/Cu5XMUZv28teRRA36GWXDwdDymARjndk/QB3z0zF\nW0nu5wuv5Hq31cnvKOxVktVjUwQ2tmexhXygxSZJtqoaXWMFyhvQkFcV1YBx\nTnwe8sHiJFahLS73H3qxle7cNGd5JNjGncNJ4xYZk1YkoY10U5aZLqtbx/8G\nUvZ8JA8oaDqG/Lb9fQqNBhcQKfvWKvfmrPjfes/mgeg4Zcvdo1Jqu2Z0Dgu/\nl0z14Nu0KcxpDDR/u8E9omxx+udQ4g0DtrvHjkn6k+MRYUz5n63dD3ShNOIn\nvr9a/t15tM7gXSWQHcgu9wVrYR4/60Usi0ThJ5oMtw9Br8GpKEM4nJ/e69eo\n/nnaUwtyT42ZUEBPkjlFq53ebxRSBJ+qVig9y5PxhtA4dVuyzaF+kMqzm6sy\ndXIM\r\n=dDEh\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCP4mvCQ+va23jFuz1adfmeP/mLBzp/QziTfR2bArKvQAIgdjdCinq2MsKYHYDbE1dDAQAzNPHPKLoLBratX5MpQuE="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.6.6_1570856205685_0.8247709556174214"
      },
      "_hasShrinkwrap": false
    },
    "0.6.7": {
      "name": "reakit-utils",
      "version": "0.6.7",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "3c6befa1642a77c6881c6c84a1d54842c9abd6f4",
      "_id": "reakit-utils@0.6.7",
      "_nodeVersion": "10.16.3",
      "_npmVersion": "lerna/3.17.0/node@v10.16.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-S/0PB9Oh7/oTVwbTnPU3y/ztG6rhFsUMX6C781MfJ5GYlgfiGBtqhLxcu5mbpj8EoLtwq/pSs3J8Y6nK10Sn0w==",
        "shasum": "262522b3ba976746ffcdd64e26aabd5ae6b98e4d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.6.7.tgz",
        "fileCount": 172,
        "unpackedSize": 275261,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvRkTCRA9TVsSAnZWagAAqjsP/juWOIle0Y/nHKMDpai8\nBrtyQm2IENp4d2tX5xq8uvWHAXpQTnDsthREcT3yS6EBfTJgKUPY+9VGn8Dt\neQUr3rvDhZUs1N+Wqsi+eXS7h+tlXQsGxhNtkGUL+M7jT2SKL7rq4poEbp8l\ny4eL3ZBvTbyjq2vuLyK9Iq5sl9WuwlTpsf+RTjDqvtYrlLZS5Zf6OrkktUFo\n5q9J8YxWbLAq0cpOhvwzbw0s85zA+sP+Z+xr9JvURq+4E/ZhaP3XNMLkdFkt\n5DqRUXU6yTOEsboBIVh+NBkiygxJ95gDHHpt4xeZtGMUOuLuxb8VBq5tLyLv\np3KU+GqwXh7sVcUoELDSQ6evvb85neVkJAxTjsIjZV3z4DLmDTOncwe7oRf/\nP/ySZVPusG9IRw99hyLHifD/ncyQISilux+0ER/AdftzJFD+PHlBGIb3iTSw\nyM402yvy4SZ7NnUXtyprcUJRe0XllfPYOcA0zK99cNlAbpOP4nsOkjQPrN5Q\n1VaUWJTM/97u4JbKUEXkHJmJK+wLpjfQOefzOiciFvixWWf1bADWqKg5uhSz\nbd3XtSLMAr/5bV1SBD46AsskePP58Um0sZ3AT5vRwH6WOphh+E9MYgjNdqYD\n1JD2AVsck55r37VaBaOvQ6ZYuCB4rbYAL3VmdRnp/GSKtnx8IkTK4EYk0It9\nNIQG\r\n=KFmu\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIDHDdt0H9YxvZjuEeSxO0vo9eYifpNdfoM+kVUrTwf+yAiA/dkQNDVg2L/4TyHUj2ZXSo5y+suXHXBMd+IMzLmupzQ=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.6.7_1572673810950_0.7700341570691582"
      },
      "_hasShrinkwrap": false
    },
    "0.7.0": {
      "name": "reakit-utils",
      "version": "0.7.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "3a989a72b6161b69e40207bda5436da117554c0b",
      "_id": "reakit-utils@0.7.0",
      "_nodeVersion": "10.16.3",
      "_npmVersion": "lerna/3.17.0/node@v10.16.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-DU3I0QnqYo7ewbSGQhUl/vJjnJlHe8sZGEJpX60uLiBepkBbf63Ns5xxQz6FoOVN1WqxKH+bm6yQ3KpkhE4CTw==",
        "shasum": "06af652edca1b1ae3fc93f07ac952db39f4be4c3",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.7.0.tgz",
        "fileCount": 174,
        "unpackedSize": 276412,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxMXWCRA9TVsSAnZWagAA3AsQAI7fOH/LL61GR4wvOna7\n+ZA9zEVnBPNgr1dNfU2zuMNI3fQZJ94PTL6eM7bIQoDo3zBr6ymYEWYaG6X4\nF7hkUNd/sBnODhvKtchD4SlKzKPuJjhCrQ8YwiFRXulo1rIUbcGczNzl0EcL\nQqkVxw93urgGBp9OzJ3q0jAq4Hv18/C2wwFZG4F+AIPxapw5eG9Jkznh49Ei\nvJx2gfpeTnfwjP6HeY4x/iSNGptsJJ1hZHcEUpYI97zNAqCgoX96PN2ixc7c\nRw+STA4tMkiO6QdD4Qs7VCMZvg1uPOYXVLUAoiDPjL6pmPY91QMRvWomuksc\nkDiqOa0HhKBqpQxQ+ZyzeaQpwoBXboo9KanEgC0oQSHTo3ecS38Ubecjl5VF\nSeiKa45/n/bx8LYMMUXM2zCQibR+uS09ynB8YkMo7B5OLVdfMXUX4QAXcBMA\nRVFtZlwxFV9wNWn70Pz8TTrxZw2rfmJWZO6PPoMJ/5/GfozOXIxj7rvY1Bu5\ng02q4PF5qUsDZpg+RvDGtHGKh9h8t4KHPWqms4fLMbPr0K8c4wRrOp+IqbfH\nmKcTnnVwcTTjKAJQ9AL7KA1vkfooXDchQISEBETqUO6dOTLuYwjdbgnlVo1g\nZi7CBk3A72OsNiEtTYQb1ZOu+f1owfGrpaHUQxokqvNMeM4fBBvs6VUEJGAq\nhICd\r\n=L3eA\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIDZoW7GX9NNs/hvzu90nI/0t9XG/n1b6dRP8KpLoUq1xAiBc1qnePRCkF7gPiuRaOAZN0e5Yu560eqLbijcsbF+WUw=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.7.0_1573176790081_0.739922271878394"
      },
      "_hasShrinkwrap": false
    },
    "0.7.1": {
      "name": "reakit-utils",
      "version": "0.7.1",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "a05b07b10dc045401c49ed56e7de0440be252c55",
      "_id": "reakit-utils@0.7.1",
      "_nodeVersion": "10.16.3",
      "_npmVersion": "lerna/3.18.4/node@v10.16.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-xQJctof9V+wkC7OxSL7P14d5Se6l/apCfhY8liIfVihtakzXOkvKea4Ka/TbEfpoTKN7MRO4xNMxjfzuGFexHQ==",
        "shasum": "f596327fcf66d6adf5c0dba2ca34b3e63994e1ec",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.7.1.tgz",
        "fileCount": 174,
        "unpackedSize": 275789,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdzaY9CRA9TVsSAnZWagAAf/AP/3ALzxZNwBzOQlhvPuwJ\nl/Nt13RkJZeM7Ec6YinjhKAnL7yzKyr3d0TIP2MfnQLM/PS5bwPj9xVJECx/\nti9WQ4mkhD1AuIZesZJg2E0MVpkGypQWVSTZ3hd9rm2wmeNrlSU4wITAnz1Q\nPzVPhm32SVKJUeWJPn9TulmgSi9sHQ4pA7xNYXP02fPpsn0zaVRdtNz4gze9\n83tRtkoXYBraXCouP5dDWCIVLLY6wzotc6cevzZ7ntrOZ5c4eSYSEl0wGCG8\nzitM1bqd/71RJPCVy5k51ytMKqNSA4C63PBGfmOGR2/uuemb9gMYe1ww5vpa\nSBMVDblPbdvIkiLACu9OYpaHQzcafAeo6ao7eZiiQZHl5wSLFDkNKSGACiS6\n1f1FdOa+6a3fEytM7hnrcNhGJupH6hoJDj+MWYsw23ts0BfTaJ5TpXueLoRx\nsjwHRmWeBCEPXnWpQ2/K2DWh843GMo2NjFs9gv0pKPTQbSzi0i9D/Up2vu5B\n0hF7seVS3gI1hMUS/Og+/mINQKM/wpEy15os7QKF0Zc8jqsxwF94g2ZEeplh\nlUOJANPLG5fzriNJWTzsI5GX3GRNY1zgT9YPzEA3nRwI4d7ar/8Yiy3IRDz3\nrfleSdDJDICZ2U3IIAkK8v+r/OgXaZidDOA1oMBSdRg1MxSEDTp8MXNqvqmH\nirfb\r\n=/cQy\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIHCQOrkcNFKy3aLcWX5uAex3Y6aNfr7QLEdUgjJ5lKKTAiAlOy4PGVclR8NjehkCJG7kQv6FXQRgLPzreS/12rLjEA=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.7.1_1573758525077_0.396334640684034"
      },
      "_hasShrinkwrap": false
    },
    "0.7.2": {
      "name": "reakit-utils",
      "version": "0.7.2",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "4931fef3070e0b56e454ae6c888b5dcf6043916c",
      "_id": "reakit-utils@0.7.2",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.19.0/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-cHG5QjimeYQEWJjmrEK+p2YwaOiqbwkbhzZlqQHOfYj5h7B/MrpyssVYlDBSQozEXM9pZwtUFGQSI2bG9jok9A==",
        "shasum": "5e19016f4ad2bf07f70d8c38d3f9a44dbf7f3e87",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.7.2.tgz",
        "fileCount": 174,
        "unpackedSize": 277643,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd2By3CRA9TVsSAnZWagAAi5cQAJZYML1AOhbWMOZvrjG2\nLeNKnnT9s0IP5q+oPgOh2ruo3sOKxmdOakggkpk9a7Y6Ki5XE5ZUkqdoCI9n\n6G8t44llnVUxhnbOxiHxPfWwx3M8Ux0QcwIdSwTqRCmZeTq3buRv4IrTgSHG\nTgXSxgWkRIjZkoribO4QqC0HEbtvC/uOWYM0k6tffPmK5o05SI7WJXkRjneN\nSORwmwXtMYlila8oJXMJLoioX8D35KXLxlZTRtO2Jau9XaAZ6VR9hRPwKWKv\n9NVgvubajuwAwxcrGNy8iO0wFHiXkEwnYrmQp1dXmtiSdPV3DK/kO9IpZTzL\nbOK6bdCnoP3hNnuFAeL/Ge3gvFv/vn2pJg6thpwx1GYKO8K9X/fKG30g+K7x\njFerZLPRk1R9ZcSvKBZoBDgtGAE/w68UFKlSv9Tz0T51fhh+beRgxkxldZ90\nyxF4WBHvTjZ+b/caitd8+TSAtBp91NAMI5njS4v60M0egNie9aFTOdAFf5jJ\nrt2ogRoBuCNHbS2IxICXkkOR9igOikoZUfx0J9NTIbEKD+Lkra5SUObDvgyS\noMBbdIvTf1C/aNHXrJ5gBHeM0bfv+ynKNBHttDfiZk5fGkYMuVGaG2XhNB3u\nvQCAg8dIEo39qL+4wGr5k9sCr7cVRBmFeSlqCRPVqNIhY0Rm9FyBMdmIQSa1\noA9W\r\n=r4GD\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCS28/39E+kQ73ZezyGx5/K/xnXlVVRANNfwTR3RqbvXQIhAOVl+2JZqOwlypTgjAIYY1333TrElGPIQgeXMjRKorJm"
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.7.2_1574444214728_0.9054597321357949"
      },
      "_hasShrinkwrap": false
    },
    "0.7.3": {
      "name": "reakit-utils",
      "version": "0.7.3",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "../../scripts/build/docs.js",
        "preversion": "yarn lint && yarn test && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "63114a85bbd57ab969763d5d7755969ea2d25c85",
      "_id": "reakit-utils@0.7.3",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.19.0/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-sQsgKYcn+OthBkvKz+TeHlYZq2SF5ZP9RutHg7O67GI+sdYqf0BVy6VeTe28TG4Vui6hoMheiMnZqhidOtN7EA==",
        "shasum": "91acb6360b30a802e5dae9bb6c9f7a9e9535ea6a",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.7.3.tgz",
        "fileCount": 174,
        "unpackedSize": 314347,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+rfTCRA9TVsSAnZWagAAdbAQAJJcFCGbGBbmMY2p7zTU\nn1dH/2u/Jlhn32vKZAk3y3uPWoEGBtOZ6W+F4tczbfrJ5gPwvC5QpxuRVMwy\nPM7xuHcOjO+e7hY6rWIq9+ejBoU0eHgy2cdk8pz/wi9vRUWgSNeOuyFK74K2\nMA+3izUsOZPTYqI8YOba88wOrGfqe01M7IXnOSFFCURU/mq9BpQewMfL+YDM\nbNmyx17XTYGwx0zgU1IrM1SlGBA9aNiHsWsyrW7i/0NH0prySOz7NRkJ79og\n2cwUmOH4THKveEKzMuOAbnOR/VkyKd0F4swRGWwZhPeIIvhEdOpOeIPaUUMX\nxoNbDFJfwS558oP4mQ3NAL5RZLu02CKtaN07dFKV4Z6H6+hYcZQQGROswSOG\n3zZldA1A08k7U2nMAgxP3Luu3ftP+4mPWipJC55NwRaaDoOZzCHSds5tqmey\n79WM/YxWK4oDrXLhsSp1nsF/NfkWGfFhjeMVYvxutwSUNWIkAsHnRpeZrk2a\nwR70C7eDOyxEWoUaiwHhZV5aF5MUxG3nEnCFzPQcxV3rUPz7PL5ZiRpod9Yn\n08t/CqN7DEaxtr/Hep2hyHRvSjFXQTkuWSQmaTSQg09DcIkUiEg35Qd5xPdW\nW/3STx0p9coSe2rExOl1LwX9qHGpMS9ENDT0CUlqxtqfy9hFQR5e0t9qgHTN\nEaWz\r\n=FFDT\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCICtafvhyPWU0G1/AvidR1Zn7XbopA1PmOPgyHoCWZiNAAiEA85Eshacng1cVMXfotZyuDzwQmLrF5ngsizLVuMveDsM="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.7.3_1576712147207_0.7072386778329185"
      },
      "_hasShrinkwrap": false
    },
    "0.8.0": {
      "name": "reakit-utils",
      "version": "0.8.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "documentation readme src --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "fe9685838d8dbc746122bbfff6b8630b7d4d6b9e",
      "_id": "reakit-utils@0.8.0",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.20.2/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-qQv1X3evX0r0hvaB66SnToG9eFLqUAkq75+W1ANjcyYwTVIVcnw8wTRJ2re5p8dlSHjjwcme/043y8LdEsF+Pg==",
        "shasum": "f1d53ed9d061e7079a7dbc046b576a378cc7bbff",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.8.0.tgz",
        "fileCount": 193,
        "unpackedSize": 383716,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOlCbCRA9TVsSAnZWagAAV7cP/ikyJB7ciIz9R1TkHxaz\nOXhhWY5eUEL8ih8wJcoCfmNdRx2u+LS7AcMDIYIwB68U7G9OTu9Fp/s7DTVa\nU+fhDdmn+wKUSnkiOzGV6K7Yd1KAlhBEo93I9IBsQQ3vbFepBXJ7NohqVeaD\nXL4F/Y9dpS567sP/qNUqu13pMQ4mci7v6lpZpsTJnBt6/eD66M+Uzgj3o87H\nyOlc8N7PHk1FL2Fl1hEJxMI1W1fqi4pv5EeZwz7PUvakaMsXr61XvPqd78zB\niaaHlw0FSp6Cm0rC7S0OXVVC4uM9rF+ONAZwLXYy6BlIds8kvSwBiCCP8wNu\n3cNCsJ/jrU6DdbTEj39Pl/+FVjiSJCn6QEQUhalmO0LgK0zFVaDOexakxue6\n6L+/2F+a77gdmOxmPDuAmOJ1m+Lhp+/0y/dRKIo0QHy7XvhrBagAWfBRGSHT\niOPqQlOoAvVA0/aroKvpQlFYckqoiypF7xhXPGkid5akdXwwk2N/hgubPP8b\nVZ3e4S9rtAhJWHxmPn2ahD12Tuf/veEBl2jKGnGUKoSUSsZ4vgEYGNXJw1tl\nHOFMJElwBjokTLeI2nK7GZOF3G5+bxDqeUFdv0HFNbb+orfdMPNrnRpwC6be\nQsUY02Z+b8yY69hzUtnldLswH+znKfBbVHfDdQELTJIVusPulv1vjjyb1Jr5\nHIoW\r\n=A7dk\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCQ0bR9CG7mxJZHT1zL5yZU++RKVzXEv0LBcR0dGEwrHQIgJ01BnsDOWeTiOe4r8rzUmbQA4tUjbp6C2gJO4PPjatk="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.8.0_1580880027207_0.5363354259148254"
      },
      "_hasShrinkwrap": false
    },
    "0.9.0": {
      "name": "reakit-utils",
      "version": "0.9.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "documentation readme src --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "843dd4312fe21f3d7c18b94bd6b60182d306f946",
      "_id": "reakit-utils@0.9.0",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.20.2/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-qVsGLmsFZv1+A5B/k1xEhFYD8U9fkl8ssvE3D5zIM33V0oIFvVClDTm8Iv96dpB1cod1kolLDKva6FkNxXP+bw==",
        "shasum": "e17a877702af422dc13d6fae95a7a4f4bc7788db",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.9.0.tgz",
        "fileCount": 195,
        "unpackedSize": 420356,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQLQZCRA9TVsSAnZWagAAo1gP/0oH37qymguLNUTCKuAy\nxA+Uz4lTmT9wuZESV+gc5id9JEwMz9eplzTyqPqkQzC64WYATE8mZknVnAlB\nau3mFpjG+Y3LTJRXg1Sl5wtEaVbzzUkD3dm2co4pXiK+09imGeg7w8wWuU9E\nHXb92h2Lqzd60TkrZ/Ed8BJAyoOQ6B/4i6RVpwqzRdS/sR2skqBKMCy7sw2/\nQquKQUwjSd7EBwuZUDqkYVtjH72ScMFRkWpcLNF2ALlStsYp468aFaWJ+0Rq\nGa46SLMaheEQ68oSn97s/oxBo4VwqKujzEQgNfJFcNYhDFJEIFp664cCjDyG\nbyKVdiEdXl/tvdRwWVAJ8mv6VqnpTxl7zQOJ2lAy03wVWRWLPVjxJI9O8MJ3\nT/qJ4Z9H/iFMMBc2XACuZJ7F7rk2WnY4HV1cpkKsZdjmtCOMD+Xj3MGA3il1\ntSNZOoz8YNOfYkueGtv4Oe0+5SOhbcJpepf7Codqu9o29nsqedxkgN3UQ7aS\nAyIeWStBlHpJfYZ/AIKXTMWMJzmzukVVC1bWOYVhsDw+ac5ov3lOZGLB8wa7\nidiCneUKwHuS+6nN9JpKOR7G1zDybRvk5qAW7ql3njF7unnOzco3xe6Jra7X\nU2W9yADte58p4/7V5AqdbE5I5vQT2S5bVDgxxce03GgFGzvDnG/8Vi6lbhZI\nTKbl\r\n=mJSX\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIC1rQs9USgcC+yyBQ/mJnbGJUQTqUWO/pNE6KGq4ZXc+AiADPlojENnWlqQKmVF9zj5dtMN8Y1I1tgztpVs5kcy4Fw=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.9.0_1581298713419_0.5707651018794775"
      },
      "_hasShrinkwrap": false
    },
    "0.10.0": {
      "name": "reakit-utils",
      "version": "0.10.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "49db6c007ea82fddf959448328b5f5d572defa40",
      "_id": "reakit-utils@0.10.0",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.20.2/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-s1+nqLYrHo54U38iETdY86+VD+CZBTqF9rxMmphuft1Iz1i+L+OqOVJMq5sviBkTiEz8zRMhrNLcjBERFiPnkA==",
        "shasum": "2985998fefa73a0875b91c27fdb89f00ae81e671",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.10.0.tgz",
        "fileCount": 218,
        "unpackedSize": 160663,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJegZ10CRA9TVsSAnZWagAAQWEP/ic4k7yQlAqdoMgpn2Vm\nk7Gmj+p1Hqd5z3sIWwa4tBJddIF7uQXvzMKD+uamAbfFZcqwd+k3cV/8l1De\ns80Sw/4wY9zxQttOzno/ExrlZ5ETy6ohbSUhbIMZ/XM6szU0kFS+KlXkq7Qc\nwjPGR0HGA4+QAAqXdCTjNlcVBQpLio9FuoOsIL4irr87ktZMZSqbF6KiAjYc\nbiWUhA6E1TmGI3+S7LqIKNQ3scgOY3lOiZZfsyK3CYNwAfI+qDbrunb9QNtg\nOw64T/7aOExV1F0q4Ht4kdYgcvxBnz4iFvcnz6fvkOIjuV3hYGBGl1B/mXIq\n94t8WMZ0DQ38sqJEmyf4yvnLF9UqzaAMJcTwoeJSUbkYoPrBPDprdYQ31Igo\nU3Lg8NKqYhgvkwOUgjUyeeuQockO36/KCyvPqvJ6DYFVbsP8M3WDWdS8kA1C\n1nQNOy/FNzXhEIN5Uz9p+UosSpwUGcNDKxjc6GMaYgX1FsIq0jJW49G0fMRp\nNd+Re/TUemVHzIRkbRjs59K8pGotuhLlVLkeIh+frPRZJLK5T1MHzRPwBqy2\n6VEcwMVF+J0lMqRCs2w6Ju9cKqu5GV/CZijqGvNda9wOtWA+26hBfRqUzu76\njq/x5XDlepfN05tBbTIBh5mR+/7z89CfpmXzSTVNY5gGOj758z0/VRCjBmw8\nuxSl\r\n=5Raw\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIHQKey6AKoYddhwSxoKv+DlNDhTdoxDr0WFetA3OTSkwAiEA7DMSeFJ7pb/h84ZTzaIhi/ucJJ5LHFDGhuWKurnhTIw="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.10.0_1585552755796_0.8148816692673568"
      },
      "_hasShrinkwrap": false
    },
    "0.11.0": {
      "name": "reakit-utils",
      "version": "0.11.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "../../scripts/build/clean.js",
        "build": "../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "7289c202a077e3651e69bf392e1a51ee26622c90",
      "_id": "reakit-utils@0.11.0",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.20.2/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-fl5MJYrhNvZ/6O8/kpDbhcp9k5bx83idkDEs3Dqm+GlrOhiRnBPoK3YEUn0HgFxYEDfGSq0SkTi2B9vXzURwfA==",
        "shasum": "218adfaf68ec633a99396fc2c44dfd54b5a7e7c5",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.11.0.tgz",
        "fileCount": 248,
        "unpackedSize": 176066,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJenS7JCRA9TVsSAnZWagAAoBsP/1qWvSZvU5bC/ALdHaob\nSuf583cf/XE+Pk/vXODwwXkhgD7SRrr0wEs+s9GmCVRZQPgekYXVlLsoAezl\nnwSpFPE50QARSUFM5WMm0mw08gWdN1KCXM5XH6VAiKd6S6K6hThdU1rFfUB+\nyL3Yg5XV86012nlomAXNuQEOzRbXnGQrRinlcbeNnY1wfUB59Wp5OvqXHrKA\nYJrPewbyLSCnW0yTxsGTgj689gxu/lkOiDmpcFyZHkJIsPj6nUf1T1UYzrSK\nD7LEZP6NTtESml4w1clJ4TSGnfeEcFAnC5uY77Sl1vMmo/JmrcaXseYZ+/s6\nsUB6INu4NwAUn/ThySf1gIR2L5blQdEqP1cgf1YqGPTlPb6P+Qfs7DB/tC5c\nOQVLj7fQ2TYpHQ01KGIB8VZAr3qxz3qXQKHNRn/IXMZjRVho1oYPL9K26rvL\nMTbO1RxWdKjTHuZS+JyzRcEepcuM7BQ6rNnoXA91+b9RmVckTG1i0Q69Ej3z\n7orjtfbwH/bUjEI1XNoMyVg2h4ACqE+5rPYr1WlDXWn4/hdvSBA2aGvq+MDk\nqEUUDxI6648dWQWdfyQ+jm4Dl1SLaz3i1HiJhsbCOUjKWNArevqCT1aGAAtd\nQuAomzUYeMgSjy0zubaXblIo9txoes0DIGyjNuFpsbcoDdHh+Cxnq1qgdcB7\nR3pV\r\n=S8Fm\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIDKEkzV+5qyqv9zJ9qL+GaIvPXq+HCQYlcOK0LrrNFxHAiEA8OnX8WusDMFcgM6jOt6EsIijkXIYW3nsMAo92JSUDpg="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.11.0_1587359433063_0.15850337724467334"
      },
      "_hasShrinkwrap": false
    },
    "0.12.0": {
      "name": "reakit-utils",
      "version": "0.12.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "0c51c4f3dc1ec9a83b9d915039ad8167f4e4217b",
      "_id": "reakit-utils@0.12.0",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.20.2/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-B0KUjRDu0GFDTi+FQApm4gynJGn18DuDdgCtcUytkN/AIJdKGaqHJ6FpeE1zMr1KAAUzZKrRqq/x93MrcQtvfQ==",
        "shasum": "4335553b1bfd0c421e552bf608b5560f47c4ab1f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.12.0.tgz",
        "fileCount": 255,
        "unpackedSize": 180505,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqVO/CRA9TVsSAnZWagAA9F8P/2TKTepgt67h71sHYnHC\nPn4G4BB+hkZmLuPn+xPE7DazvO9LiayvJaOo2GThrWYSmecY45LhI6LtUMA1\nvzuXNTyzihnO0HpXPrGUFJ1gbG+lKt235BGE789wEkU8lDaiVuqEmgGEpEjq\nSmCMLH7Tqf218UA41l2mB44ENTmoaAN1j+M/htOb81tQpy0eazJZ5H47dhl/\nUNqNiUwSiddSX9C9cQdF4un7WXrKDrcBLLeH7HnpideVhQeMb0NyCAXJzP4v\nxRxQXs02ixNhzKkTp8pchfv6Xhs1ZILrg2IBlUBY1nuQsBnEj7RpVO8SmfLH\nUjflbRQvfk/flprrMAFNEiV+Kb8FAg1u1sqfRPinuCdlDCH29K7eS0K2A2TR\nU5wWNHsvGtXpYiqKG0zWWh7tEyXVDdHSoQ8bt6nzlORS0p0hSGsMM9osq24S\n48fbhN5nC5TzXdLT4dmd36bt8/TkBNGPu8xL4v0C5tAYcM7vKhXJ+/4GcaT1\ncu6tWqzEeuUFbTvCTpjio5dM3ZbdSFFZCyB52oS+xsIoOA4B0qxbKrOkKi7v\nJVYy+Bv+DY19avzyLbjiU3yhd/SsIvm572aZlcPvcAvKuQXBbNH6/WN/jFvN\nxHrA0zIhFr6Z/op70WHCrGaMCt/2v1IJ+WOPTJWLn1iygM/szcGjNgqBJ2sZ\n72FV\r\n=kuSt\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCH0l6j/Zw0uq8CRYOXsHZyxxqJ7qVF6YxhacD+1QKLvwCIQCMi+d1RlSK2Mzge9mR2YsD4OgZJRaEnuovyzjqyx+b8g=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.12.0_1588155327245_0.5507255011491228"
      },
      "_hasShrinkwrap": false
    },
    "0.12.1": {
      "name": "reakit-utils",
      "version": "0.12.1",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "97e45c667fbb04f81fdae700d8f3e8d9736946e0",
      "_id": "reakit-utils@0.12.1",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.21.0/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-P66TYzmQFD5CqNWcRvbPb6B5nXRLfiWqwTJhVGDUeOJTSdlnjfsBuOIauojfuS+p4yeyFVsUFsFwuBM6uZ8F3A==",
        "shasum": "716edd0a468ed4472c7b780450125478d6dce898",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.12.1.tgz",
        "fileCount": 255,
        "unpackedSize": 180066,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2F5FCRA9TVsSAnZWagAAeKAP/jm3O0b1d0CRCE8Ig0wZ\nsQIYNmasKhS77lGiY4sy0KHNnSF6VttUan7QyfqqE5eEcPeNqfbFaX1n/os1\nmA18la5Z6lB66yyHL9fBMZv/RzCjZUVvx660gmb4SsyDoRUgFRdzXgWxghkc\nwZrFGcVErDCc1jRIFgo0Bs6fd2kKaLeHhThBcBah2afzq+patCx9C0ZC3xpl\nkAv9nRRP0RxS6yY2cyT+OPpE4iwpMUbHbDIR5zPhzcKOqM9vevFZNxhgG2TN\nEYxAie4pySXe6505Dab1+36i4+AIO5V8e4NpGvV8IqpMPLM5OwaZtjCcR23c\nphXlKyy7eL5QDI45JlfrKlhexh6RRKXZ7R08QwcBe0LxQTzdfdieXSokPB6p\ncNihqD/EQWoOAtuRIieP6SWdLWKXd/EfL4WS9I42gzSScNdIVivIXr7Zkmpf\n49C7Y+63Qz/Blr/Xi0lrJxgZsXUxTy6A2e4Tptmy3hXp8VwvB9t0PLWf0Z1R\n+IHUXJKZsfrRkJJgIUotsv+U44aU20qWzOgwmqwujN9XMHTTs9IrgSxkPlBe\nK1xrqenfyHESPV0Nbo87qYmTdIGyLJUEAwlyFufCtN8kz2opgxiAnvOZ2aqa\nctrFJbcZfppICrflWH+Xx2xohbEvXKvyu1DqOUmtrrTsqzndwSd7V5KtrXcC\n/olH\r\n=Ao8S\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIBYDFHotlSE06TjTisK9qGTBfBrH7omgOlVLD/orppAsAiEA9ZhfdhzWTWNnHTkmoFGPO3ZQoOvfFxnFmt0yuZ7V5UE="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.12.1_1591238213323_0.037071538604472654"
      },
      "_hasShrinkwrap": false
    },
    "0.13.0-alpha.0": {
      "name": "reakit-utils",
      "version": "0.13.0-alpha.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "55197659d782d94699715ca64504e46d908c31d8",
      "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [applyState](#applystate)\n-   [closest](#closest)\n-   [contains](#contains)\n-   [createEvent](#createevent)\n-   [createKeyboardEvent](#createkeyboardevent)\n-   [createOnKeyDown](#createonkeydown)\n-   [fireEvent](#fireevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [flatten](#flatten)\n-   [getActiveElement](#getactiveelement)\n-   [getDefaultView](#getdefaultview)\n-   [getDocument](#getdocument)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [isButton](#isbutton)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPortalEvent](#isportalevent)\n-   [isPromise](#ispromise)\n-   [isSelfTarget](#isselftarget)\n-   [isTextField](#istextfield)\n-   [matches](#matches)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [shallowEqual](#shallowequal)\n-   [splitProps](#splitprops)\n-   [tabbable](#tabbable)\n-   [toArray](#toarray)\n-   [types](#types)\n-   [useAllCallbacks](#useallcallbacks)\n-   [useForkRef](#useforkref)\n-   [useIsomorphicEffect](#useisomorphiceffect)\n-   [useLiveRef](#useliveref)\n-   [usePipe](#usepipe)\n-   [useSealedState](#usesealedstate)\n-   [useUpdateEffect](#useupdateeffect)\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **React.SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\n### contains\n\nSimilar to `Element.prototype.contains`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit**  (optional, default `{}`)\n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createEvent(el, \"blur\", { bubbles: false }));\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### createKeyboardEvent\n\nCreates a `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit**  (optional, default `{}`)\n\n#### Examples\n\n```javascript\nimport { createKeyboardEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createKeyboardEvent(el, \"keydown\", { key: \"ArrowDown\" }));\n```\n\nReturns **[KeyboardEvent](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)** \n\n### createOnKeyDown\n\nReturns an `onKeyDown` handler to be passed to a component.\n\n#### Parameters\n\n-   `options` **Options**  (optional, default `{}`)\n    -   `options.keyMap`  \n    -   `options.onKey`  \n    -   `options.stopPropagation`  \n    -   `options.onKeyDown`  \n    -   `options.shouldKeyDown`   (optional, default `()=>true`)\n    -   `options.preventDefault`   (optional, default `true`)\n\nReturns **React.KeyboardEventHandler** \n\n### fireEvent\n\nCreates and dispatches `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### getDefaultView\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### getDocument\n\nReturns `element.ownerDocument || window.document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### hasFocusWithin\n\nChecks if `element` has focus.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element or not.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element), [Event](https://developer.mozilla.org/docs/Web/API/Event)>** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `idx` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `objA` **Record&lt;any, any>?** \n-   `objB` **Record&lt;any, any>?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### splitProps\n\nSplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n### tabbable\n\n#### isFocusable\n\nChecks whether `element` is focusable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getClosestFocusable\n\nReturns the closest focusable element.\n\n##### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n##### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.isActive`   (optional, default `defaultIsActive`)\n    -   `$1.preventScroll`  \n\n##### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>** \n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n### useAllCallbacks\n\nReact custom hook that combines multiple callbacks into one.\n\n#### Parameters\n\n-   `callbacks` **...[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;(AnyFunction | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))>** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useAllCallbacks } from \"reakit-utils\";\n\nfunction Component(props) {\n  const onClick = () => {};\n  return (\n    <button onClick={useAllCallbacks(onClick, props.onClick)}>Button</button>\n  );\n}\n```\n\nReturns **AnyFunction** \n\n### useForkRef\n\nMerges up to two React Refs into a single memoized function React Ref so you\ncan pass it to an element.\n\n#### Parameters\n\n-   `refA` **React.Ref&lt;any>?** \n-   `refB` **React.Ref&lt;any>?** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = React.forwardRef((props, ref) => {\n  const internalRef = React.useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useIsomorphicEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side\nrendering.\n\n### useLiveRef\n\nA `React.Ref` that keeps track of the passed `value`.\n\n#### Parameters\n\n-   `value` **T** \n\nReturns **React.MutableRefObject&lt;T>** \n\n### usePipe\n\nA React custom hook similar to [`useAllCallbacks`](#useallcallbacks), but\nit'll pass the returned value from a function to the next function.\n\n#### Parameters\n\n-   `fns` **...[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;(AnyFunction | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))>** \n\n### useSealedState\n\nReact custom hook that returns the very first value passed to `initialState`,\neven if it changes between re-renders.\n\n#### Parameters\n\n-   `initialState` **SealedInitialState&lt;T>** \n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **React.EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
      "readmeFilename": "README.md",
      "_id": "reakit-utils@0.13.0-alpha.0",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.21.0/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-rk6six79QmfkyzOWi9uPrdl1e88Z3nCjo9xuGzmQylxSujTjIWexTkLqlZv0CAZKNv0doWHfuK7A9vWjUNIZyA==",
        "shasum": "cf72380b448156fe2bdee44424549c0ee9171dec",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.13.0-alpha.0.tgz",
        "fileCount": 255,
        "unpackedSize": 180291,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2Gn/CRA9TVsSAnZWagAAtGMP/2iCXGPXNmI/OBwtU5sj\nixdh/d8udQ3zYRl/iMLVRrpmukR60Y5fdZUQBnYeZzuwGo+HlPpaHxx8J/Fd\nipb4EBI9MFEqBpxE/2QF13UaF4d/N1tghuKPyM5HtUO+tOWygT+X8qOr7bPr\nYBhEmhdrT0eaKm73nGG9wpTg68PDUHiEVfzvcmvBWOuTXZujC4yfQHHLjJIJ\nGVNIswc+1m7n5v2Cw5VicNaCQjFaG0A/+mQvW05NQTa7hCKNY5KMWd2THiMM\nZrZaKF8kmzPNDWU86rEDj5BTTBo16fvAylmLUM0G+bDPkG9DFykThn0KkDGD\nPyUbpKf2da6GC7lW+PnkRpxbGjihXiQZV/ODa6mA3N8OQbJ1KmzNXah+zjp4\nWcDPKPWD9CadIcfyi9KSXOJ6uImG1K37SBHMiCr8ob0/L7Go4qPLDw8JYt0Y\ngU/cv0xtVB4BNcQSCqOJ8VaQQy0N+PG3votj/kj5H2Y6VLvSJHSKYc4fCxn3\nZ9Oihv0S35CN23xrdIHX65apURNnGZPQealqELlDCQs/bRU4r/wldL1seSK/\n3Zghi8CDsn68qCxcROiDmbRgC8FTD7QXrkDWzSpk0D9TdAOugYQaoDw8DLGc\ncCFYwvrGsUiB8gS5IWyfFudph9pWNvqwQfznJUczt4qhV6ePhLZOGBOTm1ak\nMHXk\r\n=phF6\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCKNBG5ohU9BxOt1z102j5/WpZ48fScNW2CDnYtTDOV/wIgVJO4Oi+08VwpJ/P0GPEBM7OKgM+amAFLJnNuTssXAUs="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.13.0-alpha.0_1591241215318_0.8727352364209207"
      },
      "_hasShrinkwrap": false
    },
    "0.13.0": {
      "name": "reakit-utils",
      "version": "0.13.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "9c2ad10e71bddb7f03fe2662a0ff6f738360a99c",
      "_id": "reakit-utils@0.13.0",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.22.1/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-/Ll+D4WllB6s2dNuWHTO32JNgdSHl1jf5y6QK3aCU4OEMtSCGz0TpXXHslWgRXWEQjKItVY640A8wugVQmKgWQ==",
        "shasum": "e752d139254027cbbdae46b7cb643f3817eb7ddc",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.13.0.tgz",
        "fileCount": 255,
        "unpackedSize": 180610,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6gMNCRA9TVsSAnZWagAA+gAP/iXusLAwWqJv/O0k9Vj9\n3ZqZMLwPaAnEQKFxIbjMstc63xwLuNUZ/mkcrEYrYczBdTV/SXrAjrtYG2IK\nRp1c+D1iqAY5HGlv3qjDSgybQYWmxYa+xP2hBCC4O0p8rkr9slwKKPfeIJHS\nH6hpwbTIjSfjSi2lZ0/XBW/AaMC90JsRITq2rgjavFRafX0YxvTBojCTIolV\no+eD1wtaeACluB5GoyqUnM4nvPUWtSbFmzatTRBtvo4Gt2VWnxvjCPDIjue8\n1KcGNineeSpxzv8kH/w42nZ67r72eYnpm8IrjtjBn+pmM+4JX07RZZafPjzy\n4DHgP7511HJPnC1OX2QbzMQPMwvr2kszGP01gBAOhR4eCCjxitPeHfAT0Ztr\nQ9xPn84zXvzDXhpmCxkmdHCg18dgNxwckEFKRvAjOMtjlaSMMXnF5wjAn0Ii\naSbSbbZkThjRawNPdVa0Ub26F/DfvWosKBWw+IYxR96iQanwtul3jeitGZ0C\nQ0UN2dO5PCg+EPFJDqM+uskhpJaC0bjvBPonQtsHWqUQccU8w3Z+u1pEuOAC\n01mog9cZ54cqmfJjKrwUFw4uYxLKkDngtugDjOyxNCNG5/3rNyNGB0zOSdOY\nVRYmY4GJ++slKps7OUh8dnBEt2aM9Vb2vvOewF2pNFzNIbgMRe1WdELla6MC\nkOMr\r\n=nzsY\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDyWQuWeMrpb4kyaZQp2F/qBP0IY2De8VqXWbhluU2b7gIgXi5nzMFd2bmg+RtB7v8Pr+Ri9qhq9nf9rLz5S/7pl1o="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.13.0_1592394508738_0.3874398031990025"
      },
      "_hasShrinkwrap": false
    },
    "0.13.1": {
      "name": "reakit-utils",
      "version": "0.13.1",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "d9e292e72e2f45e1f0a31257dc3de5d73ab7437e",
      "_id": "reakit-utils@0.13.1",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.22.1/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-NBKgsot3tU91gZgK5MTInI/PR0T3kIsTmbU5MbGggSOcwU2dG/kbE8IrM2lC6ayCSL2W2QWkijT6kewdrIX7Gw==",
        "shasum": "060b8b2a55eea1170c6d8ff37cd98c10c63ee55c",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.13.1.tgz",
        "fileCount": 262,
        "unpackedSize": 186948,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEteGCRA9TVsSAnZWagAAxMAP+wXYyvKZGqO5f7/mF7R+\nJmXm94twsnQSLxPa7/pbP5UQBL+9pA++SVdS/P/2LNbyYGjGLtp6mHHE1OnT\nNgiKeHwwzG1zv38iGe6soiV3w9GLsJCvtfNFGQC6soHX5wsYwKVP5j48FKqr\nLw9+BHfBOf/XKLUvMMLqZTK7HxDF+QIyeTNzzv2amY4coqcz3hE6uGxly6x/\n+YOuTb9X++M77Vz+TsxSATATAn9NM0NebDB+trXFT98W9vjiYipkPL8O5GJD\nJX3TSSYJOlM74OAULbJQM5JkJyrWj32M/BwlUjBvXvDdCJB9vWda+JS5QHzI\nhfiap6jnJeHGTvTtpCkD5rRqoNXgx86YMbjyvc8OyzFpbYz5ldqvO8eOYDzS\nOU9gLeVysC9USjBOKtR6lZNF+ZBcupL1DVWetfGfSVmEGxVOOoCq5bsVFb3i\nbsgWwWH4kXOo2EI/fRISQh4co3H1JaZKouDRERzjeJOI6QBH7xCDY/nfM2Z2\nsa6F8zY8Oid63TE/3l+r0BNSz3bnsUzcrZj2gdWwtP48Wqg5Oeu7WYpAs/q0\nbHJg/9thTgjbkEakk6mIzJScZeGbOgeaMuc+GWI8OeaPSVYZUqoyyS5aNJIr\nSAMgwwQzOCaTEMPJE/bTnRjNPe8R2C6NzsUgOAR0+YVfENbuN1+kOM978O93\n3O+e\r\n=/gXb\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCICEa0oHv81xpVqnz9SUx64Rn4a2uF3BQtg40aTHAW/EFAiEA/LvxNjv8jew4FasSKpL2ihrO2cowZj9FVsFxtMdWIok="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.13.1_1595070341904_0.635567877199188"
      },
      "_hasShrinkwrap": false
    },
    "0.14.0-alpha.0": {
      "name": "reakit-utils",
      "version": "0.14.0-alpha.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "d57b97f2f64c883a95c73acf7ad0275dfdbd642a",
      "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [applyState](#applystate)\n-   [closest](#closest)\n-   [contains](#contains)\n-   [createEvent](#createevent)\n-   [createKeyboardEvent](#createkeyboardevent)\n-   [createOnKeyDown](#createonkeydown)\n-   [fireEvent](#fireevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [flatten](#flatten)\n-   [getActiveElement](#getactiveelement)\n-   [getDefaultView](#getdefaultview)\n-   [getDocument](#getdocument)\n-   [getNextActiveElementOnBlur](#getnextactiveelementonblur)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [isButton](#isbutton)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPortalEvent](#isportalevent)\n-   [isPromise](#ispromise)\n-   [isSelfTarget](#isselftarget)\n-   [isTextField](#istextfield)\n-   [matches](#matches)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [shallowEqual](#shallowequal)\n-   [splitProps](#splitprops)\n-   [tabbable](#tabbable)\n-   [toArray](#toarray)\n-   [types](#types)\n-   [useAllCallbacks](#useallcallbacks)\n-   [useForkRef](#useforkref)\n-   [useIsomorphicEffect](#useisomorphiceffect)\n-   [useLiveRef](#useliveref)\n-   [usePipe](#usepipe)\n-   [useSealedState](#usesealedstate)\n-   [useUpdateEffect](#useupdateeffect)\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **React.SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\n### contains\n\nSimilar to `Element.prototype.contains`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit**  (optional, default `{}`)\n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createEvent(el, \"blur\", { bubbles: false }));\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### createKeyboardEvent\n\nCreates a `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit**  (optional, default `{}`)\n\n#### Examples\n\n```javascript\nimport { createKeyboardEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createKeyboardEvent(el, \"keydown\", { key: \"ArrowDown\" }));\n```\n\nReturns **[KeyboardEvent](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)** \n\n### createOnKeyDown\n\nReturns an `onKeyDown` handler to be passed to a component.\n\n#### Parameters\n\n-   `options` **Options**  (optional, default `{}`)\n    -   `options.keyMap`  \n    -   `options.onKey`  \n    -   `options.stopPropagation`  \n    -   `options.onKeyDown`  \n    -   `options.shouldKeyDown`   (optional, default `()=>true`)\n    -   `options.preventDefault`   (optional, default `true`)\n\nReturns **React.KeyboardEventHandler** \n\n### fireEvent\n\nCreates and dispatches `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### getDefaultView\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### getDocument\n\nReturns `element.ownerDocument || window.document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### getNextActiveElementOnBlur\n\nCross-browser method that returns the next active element (the element that\nis receiving focus) after a blur event is dispatched. It receives the blur\nevent object as the argument.\n\n#### Parameters\n\n-   `event` **(React.FocusEvent | [FocusEvent](https://developer.mozilla.org/docs/Web/API/FocusEvent))** \n\n#### Examples\n\n```javascript\nimport { getNextActiveElementOnBlur } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\nelement.addEventListener(\"blur\", (event) => {\n  const nextActiveElement = getNextActiveElementOnBlur(event);\n  ...\n});\n```\n\n### hasFocusWithin\n\nChecks if `element` has focus.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element or not.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element), [Event](https://developer.mozilla.org/docs/Web/API/Event)>** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `idx` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `objA` **Record&lt;any, any>?** \n-   `objB` **Record&lt;any, any>?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### splitProps\n\nSplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n### tabbable\n\n#### isFocusable\n\nChecks whether `element` is focusable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getClosestFocusable\n\nReturns the closest focusable element.\n\n##### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n##### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.isActive`   (optional, default `defaultIsActive`)\n    -   `$1.preventScroll`  \n\n##### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>** \n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n#### SetState\n\nState hook setter.\n\nType: React.Dispatch&lt;React.SetStateAction&lt;T>>\n\n### useAllCallbacks\n\nReact custom hook that combines multiple callbacks into one.\n\n#### Parameters\n\n-   `callbacks` **...[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;(AnyFunction | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))>** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useAllCallbacks } from \"reakit-utils\";\n\nfunction Component(props) {\n  const onClick = () => {};\n  return (\n    <button onClick={useAllCallbacks(onClick, props.onClick)}>Button</button>\n  );\n}\n```\n\nReturns **AnyFunction** \n\n### useForkRef\n\nMerges up to two React Refs into a single memoized function React Ref so you\ncan pass it to an element.\n\n#### Parameters\n\n-   `refA` **React.Ref&lt;any>?** \n-   `refB` **React.Ref&lt;any>?** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = React.forwardRef((props, ref) => {\n  const internalRef = React.useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useIsomorphicEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side\nrendering.\n\n### useLiveRef\n\nA `React.Ref` that keeps track of the passed `value`.\n\n#### Parameters\n\n-   `value` **T** \n\nReturns **React.MutableRefObject&lt;T>** \n\n### usePipe\n\nA React custom hook similar to [`useAllCallbacks`](#useallcallbacks), but\nit'll pass the returned value from a function to the next function.\n\n#### Parameters\n\n-   `fns` **...[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;(AnyFunction | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))>** \n\n### useSealedState\n\nReact custom hook that returns the very first value passed to `initialState`,\neven if it changes between re-renders.\n\n#### Parameters\n\n-   `initialState` **SealedInitialState&lt;T>** \n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **React.EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
      "readmeFilename": "README.md",
      "_id": "reakit-utils@0.14.0-alpha.0",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.22.1/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-oTEdx40JBItaahMcQcItMGH0bJuN6E9D8eXzjeIcVszcm5uVJNPlMVo1rJNWaSNwjDvIwn+c456lI6dW/taZaQ==",
        "shasum": "a26b6cbcdc552512677138b9e180bed4c9e5e4bc",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.14.0-alpha.0.tgz",
        "fileCount": 262,
        "unpackedSize": 187339,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFT/cCRA9TVsSAnZWagAAYnkP/RQLowVDSm34qdKOI2CM\nFvRkENzxqY27LcGPsG4bc2jHP0fHYhginmWlU2RJOwxDKcYgQXUF94NX6aSh\nF87mommvF5cEHZk05uXSRvSmhPnYXJ9MJv3AZnrJODeRGe4we2gyaP3CfZcr\ngr3QYZOT+vkXRkPo1x+g4/ZccArCMhKHdR0o5YvjYMS9OTnkSG8vfWbqUewX\n9FE4LqfKmOBBszMSrQIE7uTEx6cjJrTlP01TpbIaxkP5d9TpeDiFb7YweNwS\ngbdrsdgTHZSXkSb1YoGxXBzB8NXZoaUrJra04+iT4EemaGSLDRwgJkSS5Uqx\nbkU7kVSO4wnz046ypz/U4q56ZDxnCXVBLFSfRxgy2DkvVNPIPW3kuqKdW8vW\nplvbQs6VcniJohFPl0K50w42In8OAqKK69KT5Ov2/gMPm1Y+KCelZdxGcRvp\ncF8rP08i8rXLGMayn3Gmld6FRHgIK+Qw13gNEdisPxXM8Ds8M6p3r+u+0rob\nwNzbDlCGGZATGWWswVgElyJcVUZXnGHpeEL6SLtsMHF3L2Qwg70ZZ6T05cKr\n8X2ZKqEaS5N/SzyGiMcUdGvulJpGEz/HF9YOKTVHd6elDG9zQasXJ+He9tJi\nFcvT0RXglEmZtUCaI33f9+zmg/78g98sCOBiedTbYiT1lj8VAk3yL5c8tUV/\nmVHG\r\n=c7yZ\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIELgsLGcIEGEESsNJOU1Rn1+4YhagqHfbbRwLMi3W0FGAiEAy5MOaK5QhvQPy25C6urenJbfG+3zwqsanCOrEJ5bZmg="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.14.0-alpha.0_1595228124091_0.7839929697572736"
      },
      "_hasShrinkwrap": false
    },
    "0.14.0-alpha.1": {
      "name": "reakit-utils",
      "version": "0.14.0-alpha.1",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "3c11bca8e4cac4facfed6a3620560a4edd936f95",
      "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [applyState](#applystate)\n-   [closest](#closest)\n-   [contains](#contains)\n-   [createEvent](#createevent)\n-   [createKeyboardEvent](#createkeyboardevent)\n-   [createOnKeyDown](#createonkeydown)\n-   [fireEvent](#fireevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [flatten](#flatten)\n-   [getActiveElement](#getactiveelement)\n-   [getDefaultView](#getdefaultview)\n-   [getDocument](#getdocument)\n-   [getNextActiveElementOnBlur](#getnextactiveelementonblur)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [isButton](#isbutton)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPortalEvent](#isportalevent)\n-   [isPromise](#ispromise)\n-   [isSelfTarget](#isselftarget)\n-   [isTextField](#istextfield)\n-   [matches](#matches)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [shallowEqual](#shallowequal)\n-   [splitProps](#splitprops)\n-   [tabbable](#tabbable)\n-   [toArray](#toarray)\n-   [types](#types)\n-   [useAllCallbacks](#useallcallbacks)\n-   [useForkRef](#useforkref)\n-   [useIsomorphicEffect](#useisomorphiceffect)\n-   [useLiveRef](#useliveref)\n-   [usePipe](#usepipe)\n-   [useSealedState](#usesealedstate)\n-   [useUpdateEffect](#useupdateeffect)\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **React.SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\n### contains\n\nSimilar to `Element.prototype.contains`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit**  (optional, default `{}`)\n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createEvent(el, \"blur\", { bubbles: false }));\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### createKeyboardEvent\n\nCreates a `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit**  (optional, default `{}`)\n\n#### Examples\n\n```javascript\nimport { createKeyboardEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createKeyboardEvent(el, \"keydown\", { key: \"ArrowDown\" }));\n```\n\nReturns **[KeyboardEvent](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)** \n\n### createOnKeyDown\n\nReturns an `onKeyDown` handler to be passed to a component.\n\n#### Parameters\n\n-   `options` **Options**  (optional, default `{}`)\n    -   `options.keyMap`  \n    -   `options.onKey`  \n    -   `options.stopPropagation`  \n    -   `options.onKeyDown`  \n    -   `options.shouldKeyDown`   (optional, default `()=>true`)\n    -   `options.preventDefault`   (optional, default `true`)\n\nReturns **React.KeyboardEventHandler** \n\n### fireEvent\n\nCreates and dispatches `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### getDefaultView\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### getDocument\n\nReturns `element.ownerDocument || window.document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### getNextActiveElementOnBlur\n\nCross-browser method that returns the next active element (the element that\nis receiving focus) after a blur event is dispatched. It receives the blur\nevent object as the argument.\n\n#### Parameters\n\n-   `event` **(React.FocusEvent | [FocusEvent](https://developer.mozilla.org/docs/Web/API/FocusEvent))** \n\n#### Examples\n\n```javascript\nimport { getNextActiveElementOnBlur } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\nelement.addEventListener(\"blur\", (event) => {\n  const nextActiveElement = getNextActiveElementOnBlur(event);\n  ...\n});\n```\n\n### hasFocusWithin\n\nChecks if `element` has focus.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element or not.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element), [Event](https://developer.mozilla.org/docs/Web/API/Event)>** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `idx` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `objA` **Record&lt;any, any>?** \n-   `objB` **Record&lt;any, any>?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### splitProps\n\nSplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n### tabbable\n\n#### isFocusable\n\nChecks whether `element` is focusable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getClosestFocusable\n\nReturns the closest focusable element.\n\n##### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n##### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.isActive`   (optional, default `defaultIsActive`)\n    -   `$1.preventScroll`  \n\n##### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>** \n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n#### SetState\n\nState hook setter.\n\nType: React.Dispatch&lt;React.SetStateAction&lt;T>>\n\n### useAllCallbacks\n\nReact custom hook that combines multiple callbacks into one.\n\n#### Parameters\n\n-   `callbacks` **...[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;(AnyFunction | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))>** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useAllCallbacks } from \"reakit-utils\";\n\nfunction Component(props) {\n  const onClick = () => {};\n  return (\n    <button onClick={useAllCallbacks(onClick, props.onClick)}>Button</button>\n  );\n}\n```\n\nReturns **AnyFunction** \n\n### useForkRef\n\nMerges up to two React Refs into a single memoized function React Ref so you\ncan pass it to an element.\n\n#### Parameters\n\n-   `refA` **React.Ref&lt;any>?** \n-   `refB` **React.Ref&lt;any>?** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = React.forwardRef((props, ref) => {\n  const internalRef = React.useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useIsomorphicEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side\nrendering.\n\n### useLiveRef\n\nA `React.Ref` that keeps track of the passed `value`.\n\n#### Parameters\n\n-   `value` **T** \n\nReturns **React.MutableRefObject&lt;T>** \n\n### usePipe\n\nA React custom hook similar to [`useAllCallbacks`](#useallcallbacks), but\nit'll pass the returned value from a function to the next function.\n\n#### Parameters\n\n-   `fns` **...[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;(AnyFunction | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))>** \n\n### useSealedState\n\nReact custom hook that returns the very first value passed to `initialState`,\neven if it changes between re-renders.\n\n#### Parameters\n\n-   `initialState` **SealedInitialState&lt;T>** \n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **React.EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
      "readmeFilename": "README.md",
      "_id": "reakit-utils@0.14.0-alpha.1",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.22.1/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-DSWIBZDB+/qH3LH55JvCJ+LNGYwnb1aE2reNpbUIuDgMk+K77Ni5DjPpmLj+F+6vZjyRhhukQ8BBbE6nCD41lg==",
        "shasum": "8c4d14a4e8813137bd9512c39984a1f4cc9f31ad",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.14.0-alpha.1.tgz",
        "fileCount": 262,
        "unpackedSize": 187339,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLFf2CRA9TVsSAnZWagAAx+8QAJBrLzCc2DAiSFx8iyXl\nZVqQIKcJ7MNSDnnOEPPGAFH4VQYrlCF7osKOxC8Yu5JsPEu4cWqDy6gufCFg\nOAZK7rlaYBcl2JUO7dKVwjbyuq2/HsAWdfRHQ+W/G5YeaWLprK7TGAZIHXMD\nsSNwW4IUDKy8WH9k/bRkkNTDl2Pz9L8F/gk8Rg0h/CgToAin9KB3hVOJb9pK\n4y5kq2LeFLwEf2+zgmhMm9UJDCurT/WouMQcrP6dk2W+twDs2GA7YoWMBkUr\nMMUbgPGqqmbHTLoDMxP2IEkYP6+8lYoNdVBQ/2tAAvsIJrslfo+4YvNUy5g6\nkR51wMlpigO71JQtmGFMZnGiaJNI4fG7NjkG5REZMY73ZncB+A4AHL6+LFIY\npk4AcAOrqliUqOY9m/31FFbUX/7N6yD9kY8HB0naRsxrSX8usJ2OwvuvZXaj\nT2BmF3To8i9fM/D/xBF28rgotiP1YwE9Jfko6d51+FymEQX60H0aMx/XQYT7\n1uKB7eC7nR78LVNUfqEBfgeVzs9ZFl0CHJ5gAqd9NYcd2ReFRcND/JrMnaaK\nHSFkRkQ/bTfqWDkBLHyVvPw4gEb+F0eJX+gIdlGZ84om9nVgqxvq2vrl7SH4\nF0WXhggEuG392ZMEvR/RGdpxAaqkw7bQBMWpKepTam/BcA+e2Q5lRq4jkqxB\nbGCZ\r\n=5Bii\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCkSaA2cXA5h6joFlSno1tpx0SwuD9CeRj1pIw2xEprtAIhAO5zCUzCBtYMVJfCkY+6Wnh3XeO0T0gI2xIgrtdl+sPM"
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.14.0-alpha.1_1596741621701_0.9452832336147712"
      },
      "_hasShrinkwrap": false
    },
    "0.14.0": {
      "name": "reakit-utils",
      "version": "0.14.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "eec7a44be656b49c96c17c1d76796b5800bea29e",
      "_id": "reakit-utils@0.14.0",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.22.1/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-c3WWhWtvtP9umb3lq0CcRsZ3JTXAgP0RzQL+EYQjsx0GmJNmXdXSJ6bI44mrwfG815ibjvrg1hPX2nMEyyKXLQ==",
        "shasum": "b5cf633b3f12eaa060ccccf374ec3a633850f0af",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.14.0.tgz",
        "fileCount": 262,
        "unpackedSize": 187532,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfLFn+CRA9TVsSAnZWagAA4fIP/12Px9eUIJd9wGu0Dw1O\nFYm2Vc/hBCN6FkLVdZ5SeRXyl8CdH5J9IPQivWVGbegUHydBgKeEVHNs91B7\nzthicYLDul90BaGf8r5Q9+91fdUv30nDmnkBFNoCIE26ct+g+mqYqWSdu+5s\npZzj5xZGWqcKsH9l2Cjgn/+cpPHoq6nueV544asgN6Pa4YgLVyRIrlpYGOY0\nMCID1pZko6Of56UbSUq/xLzGD4wq50P/Kp/MAA0axmvDnSIP9qpdFOdHGf6d\nfC6KdW26S2dPzKmGoNMWpow4x9C5mhB/23sqH5rLAf27lPhYI3zBfd5mt74M\n3VRPXK0ZD5awwjRTvokHvJDCov2W80q0qdXfcVaMiVJzSz06mPIL5oi0IOK9\nQa23/g9zapvd9HjSMz2LhD/TgluH1Lsmcc+NVlQWQViWxgn+bjtUnX4b5lS+\ns4HGL4Hl8jXJKm6t8h+AOrvrj00pHzAK5UlkON3FDnlg98IwRndPXsaCkPym\n+QRELx2btOTpPz/r3ky0qAl1XLTtG7+3u5Ie86t5U6O0+Te/boKoQyHyiHYw\ntxRlIFmb5gQqSpgwAgqVfif79OQ2aNmnCkb2Db34R1+EbIN6edlTKObSNRdO\nW9herdMWawmwfTEjSdBQDKo/MnVi/PjSwVvUgErCS94egCvUNiUH9S2w/WsN\n11VZ\r\n=PWpP\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDLJItE2PzjLMId/inpv38Zbirej2nv1dwQP1linVRP9wIhAKaydL3xFPKU79C5WCxdTVoXMvc6GZCOagO0TvBIxAzz"
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.14.0_1596742141700_0.3706923391166219"
      },
      "_hasShrinkwrap": false
    },
    "0.14.1": {
      "name": "reakit-utils",
      "version": "0.14.1",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "0e63eb0013c03bdb9b9add9b9cb28aca3c153732",
      "_id": "reakit-utils@0.14.1",
      "_nodeVersion": "12.13.0",
      "_npmVersion": "lerna/3.22.1/node@v12.13.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-Xzp8X8ZrZ3HVpKjAFmHVCVbL+cyNHFG2JHaZIrRR/Uni9gTKQo5uoEg9n6ULr+2k3v6R7C91TzhcReLHKGh8ZA==",
        "shasum": "e552a3c5b7fe6a4f176ebddc4565cee1980670e6",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.14.1.tgz",
        "fileCount": 262,
        "unpackedSize": 187778,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNMOeCRA9TVsSAnZWagAAgt8P/RkSXMgan/xP4x5zPlLl\nUjBQtUz8fDW+XBUAzImaOKkYru2dWt+ndwnAHSOPn+ZZlLCDstxRRXqF6FUx\n+buLKlCdbysMebIldEM8sRZzbH3ZirOtSKLTZqlroWhQUcESZR50ZHxcW669\nommb7iEDWVEPmbGX1MNZXH4Ga51Q2aIPI0nRZvng0Dv/7xouGkxCuFvOKxZP\nK4YQBHZ+2vBRizWb/4AXPTe8bk7p9XEyEug3Q4DWZ2JE+zmHl2AvI2/+gqu9\nMVeWgN94zFvpwO0oA+fuRlr+i+8O/TK4mDnFwBjY+athBdnQj15zxmxwhe1I\nC0Vh9GRyJB0GNmDmKXHZCM2I842Psz8fr3YaptDcfCkdzcJdMe705pJq7o5l\nIJUszrHdUehZYn02EtqKj1/I9sL0BgSJdrjR1NAYhYFlbUuwrbfwHVWFnQ0G\nn9grM/ZxaMTXSdpr2lPp8jR6z9rth0SQPrrr8Ps2RLnYp7WLVQbkn9DxTTRG\nKCLsTg/9wA/wjzTkVYwNmG0UiKKWd87Ez2higUJ+97DrNWR0ukFlRgnpPHTE\nZLgPlGyVvOydh7ChEWBpfd6WSvobQMqfirR16qfQqoW6xJ0t4DyMuvUTxcSk\nj16OzKfln8Kam06Rjl36RfMQivjIB4ZSMcyV3o7r+wwqOhXYVHOe6iGrH8Q0\nUKQb\r\n=cBkU\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIEcxqPnLef8hVypH6nRF24L4ybIRtB+oIu5dbE1n7zr3AiEAqOELue49cKc0CHFSsDP3a+YEO9XabIDk52UshoBK7S4="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.14.1_1597293469895_0.09831141018466738"
      },
      "_hasShrinkwrap": false
    },
    "0.14.2": {
      "name": "reakit-utils",
      "version": "0.14.2",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "81d92c28127d33325742a0e5be8ef16930043086",
      "_id": "reakit-utils@0.14.2",
      "_nodeVersion": "12.18.3",
      "_npmVersion": "lerna/3.22.1/node@v12.18.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-tNEZ0BPKf6WBrUR17yU5Gn4ErTQq6BF067fD5/kjbwWNHABSfAZgMX1dJH6dY2OXp2ENszvstgUbGWorXcdhLA==",
        "shasum": "c66546221fef3423e672b3c2527ec4c8ddb82ee6",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.14.2.tgz",
        "fileCount": 267,
        "unpackedSize": 192557,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOgshCRA9TVsSAnZWagAA1B8P/jDY29JVZfYH34I0Q1py\n/QHF8kgvrLL3FNqF8XH3NBXrQxZuDjPAP4t8eCxyhzt8j5riDgp+NFyzFXZl\nRQk9NofDGyZhUqTUBJ08gKMPRLmOM6ao9FihNsNzV5KhOzI2eAsoQw/15wb5\nodfcJnfH5cVBw/ysPSk+HNaDSQaBukUTiREfccfG/he17NHTnB5mnoUr3EpC\nXFYb329I60r8loVtFAHPDLkWxJCwj6ZndOnCY49nsKk4Sy+JxeP0/x5xY/mI\nZOqdjFdbG+q3tVp19EBpsQ0YXN1RUAFjfe3uTp8SuhNsmwkWX50sHH6IS2hD\nK87JNM91aXnYcuKOV16/CUA5tcJNl1YZxh5Wc2OQF4fSXw2w9ey4fAKgzaPa\nXzmIljl9nmO/rky2KH+RVp537UNSl7KM018RFNs05FmkEfoYsC1C3DUoaOJi\n4HNutaEi/qHY/Qiq9B8vy0Xur7HqnFl1uCjX3NCtHZtr4LJDVqdjNRCVddiV\nmw9PfowlK6VUmAyvGweha48V9cBdai6zZ5+LkiwuKrZNe0Ja4DaNDUJubo84\nYBMKEODpBQjPflp3OmxKI3uIwLM2p2L+a8EPYZwxzOOTacK3eorZfykJsWjg\nWzMMeexbsI5/jfGuEZfVlG9Jt/2h5od0+TcjXHYf4fZiCG31GMxy+4eR7PeC\nvlza\r\n=FJAQ\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIGulkuF+xOB+SihAS2miJ8qLZo563nAI/zUq6LOeKDMvAiAqbC3cs7GsX+GY64bX6rDpgo+rbPwWLf7rikqGWdM7rA=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.14.2_1597639456845_0.14024084717040042"
      },
      "_hasShrinkwrap": false
    },
    "0.14.3": {
      "name": "reakit-utils",
      "version": "0.14.3",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "2b9a11c7d44c6159662e4e8261d8852211d66c30",
      "_id": "reakit-utils@0.14.3",
      "_nodeVersion": "12.18.3",
      "_npmVersion": "lerna/3.22.1/node@v12.18.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-EQlalje+8UiybchMobZi6LrwbBBrqMFOG7f8Z5RJQil1Szt6SFP5BXfAIFj9J3gZunCXVk/NRaiyTdTbFiZ1CA==",
        "shasum": "ea77684c2126ec41a26f02ef2b154e47a100371e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.14.3.tgz",
        "fileCount": 272,
        "unpackedSize": 197735,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRCsQCRA9TVsSAnZWagAADcgP/iyDYcJKmMzRlbLbRIvf\nElJXfFkjmRE0GtDh/1GNHZsKxnOEKDKW36KHRa0sHmC5/3nT/o66sq4dFtRh\npPIxJz1NR177YiSUfHwITokjuQ/u2yFZ3j5OzPHAmWQ4SbA1bM9BPLzLj39F\nl15ITZ9EhdRoHKOj0JtHzYftAjLl2IahIAOSgr3WNsKyaOP+A6hQPQV3j1+N\neJoqVOW9kskFGL8rzNj3VsPFpo0ISu88/ALcuev5pj8vNX5UTrTLJeLEzS5V\nlRzWuNTXkx8hwfsvgDi/sJJPtCrE/5bMad+UU0XGDpECJgamx1OHe5aNHd7C\nViUQ6l3yRoES0ebg8G9K+R6GMszalr6J9baY0yQn576ot0nrcgS0Sb8iIj4m\n835cHL6c7QPC2IEmDs6CarCoq7hQPlxTRHJuVIy+5XiQObA0HbZtdokPmep5\nDzctW58Y2p2OUbmvfogUwlD727h134ucgGH3Np/UYiPalyRp2CYjYGbcuqBe\ny+5aoZo1i4eGugYamMX64G8r9nwzo1MgUtMLIzSgVteapKOd/mVGa34xkXt7\nC8CaOYarizwe7kW4GD0VmNRkFWWDqkuJjMMHd1pdBmLiJgJCij2JEJeVcp8B\np4HEDLChzsaCBsmwfZyzUdmkRG71ymbYg6x9NA7gtu1OPxphSGImREMejRJ8\njxRV\r\n=Qjhd\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQD30Rn9QW0OOcvuwss4vsurAyqhjP4+LyZysbIxUw2xPQIhAKVdWfQFIrmPHE57de5SuWsV1t/gui8OFSsRxgHfmwve"
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.14.3_1598302991764_0.2776307758329668"
      },
      "_hasShrinkwrap": false
    },
    "0.15.0-alpha.0": {
      "name": "reakit-utils",
      "version": "0.15.0-alpha.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "76c913732b1f522367ac7b2876a1bc133b7090d2",
      "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [applyState](#applystate)\n-   [canUseDOM](#canusedom)\n-   [closest](#closest)\n-   [contains](#contains)\n-   [createEvent](#createevent)\n-   [createOnKeyDown](#createonkeydown)\n-   [ensureFocus](#ensurefocus)\n-   [fireBlurEvent](#fireblurevent)\n-   [fireEvent](#fireevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [flatten](#flatten)\n-   [getActiveElement](#getactiveelement)\n-   [getDocument](#getdocument)\n-   [getNextActiveElementOnBlur](#getnextactiveelementonblur)\n-   [getWindow](#getwindow)\n-   [hasFocus](#hasfocus)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [isButton](#isbutton)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPortalEvent](#isportalevent)\n-   [isPromise](#ispromise)\n-   [isSelfTarget](#isselftarget)\n-   [isTextField](#istextfield)\n-   [matches](#matches)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [shallowEqual](#shallowequal)\n-   [splitProps](#splitprops)\n-   [tabbable](#tabbable)\n-   [toArray](#toarray)\n-   [types](#types)\n-   [useForkRef](#useforkref)\n-   [useIsomorphicEffect](#useisomorphiceffect)\n-   [useLiveRef](#useliveref)\n-   [useSealedState](#usesealedstate)\n-   [useUpdateEffect](#useupdateeffect)\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **React.SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### canUseDOM\n\nIt's `true` if it is running in a browser environment or `false` if it is not (SSR).\n\n#### Examples\n\n```javascript\nimport { canUseDOM } from \"reakit-utils\";\n\nconst title = canUseDOM ? document.title : \"\";\n```\n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\n### contains\n\nSimilar to `Element.prototype.contains`, but a little bit faster when\n`element` is the same as `child`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { contains } from \"reakit-utils\";\n\ncontains(document.getElementById(\"parent\"), document.getElementById(\"child\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit?** \n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createEvent(el, \"blur\", { bubbles: false }));\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### createOnKeyDown\n\nReturns an `onKeyDown` handler to be passed to a component.\n\n#### Parameters\n\n-   `options` **Options**  (optional, default `{}`)\n    -   `options.keyMap`  \n    -   `options.onKey`  \n    -   `options.stopPropagation`  \n    -   `options.onKeyDown`  \n    -   `options.shouldKeyDown`   (optional, default `()=>true`)\n    -   `options.preventDefault`   (optional, default `true`)\n\nReturns **React.KeyboardEventHandler** \n\n### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.preventScroll`  \n    -   `$1.isActive`   (optional, default `hasFocus`)\n\n#### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### fireBlurEvent\n\nCreates and dispatches a blur event in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `eventInit` **FocusEventInit?** \n\n#### Examples\n\n```javascript\nimport { fireBlurEvent } from \"reakit-utils\";\n\nfireBlurEvent(document.getElementById(\"id\"));\n```\n\n### fireEvent\n\nCreates and dispatches `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### getDocument\n\nReturns `element.ownerDocument || document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### getNextActiveElementOnBlur\n\nCross-browser method that returns the next active element (the element that\nis receiving focus) after a blur event is dispatched. It receives the blur\nevent object as the argument.\n\n#### Parameters\n\n-   `event` **(React.FocusEvent | [FocusEvent](https://developer.mozilla.org/docs/Web/API/FocusEvent))** \n\n#### Examples\n\n```javascript\nimport { getNextActiveElementOnBlur } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\nelement.addEventListener(\"blur\", (event) => {\n  const nextActiveElement = getNextActiveElementOnBlur(event);\n});\n```\n\n### getWindow\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### hasFocus\n\nChecks if `element` has focus. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocus } from \"reakit-utils\";\n\nhasFocus(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### hasFocusWithin\n\nChecks if `element` has focus within. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\nisButton(document.querySelector(\"div[role='button']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element), [Event](https://developer.mozilla.org/docs/Web/API/Event)>** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\n#### Examples\n\n```javascript\nimport { isTextField } from \"reakit-utils\";\n\nisTextField(document.querySelector(\"div\")); // false\nisTextField(document.querySelector(\"input\")); // true\nisTextField(document.querySelector(\"input[type='button']\")); // false\nisTextField(document.querySelector(\"textarea\")); // true\nisTextField(document.querySelector(\"div[contenteditable='true']\")); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **T** \n-   `index` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `objA` **Record&lt;any, any>?** \n-   `objB` **Record&lt;any, any>?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### splitProps\n\nSplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n### tabbable\n\n#### isFocusable\n\nChecks whether `element` is focusable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getClosestFocusable\n\nReturns the closest focusable element.\n\n##### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **T** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n#### SetState\n\nState hook setter.\n\nType: React.Dispatch&lt;React.SetStateAction&lt;T>>\n\n### useForkRef\n\nMerges up to two React Refs into a single memoized function React Ref so you\ncan pass it to an element.\n\n#### Parameters\n\n-   `refA` **React.Ref&lt;any>?** \n-   `refB` **React.Ref&lt;any>?** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = React.forwardRef((props, ref) => {\n  const internalRef = React.useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useIsomorphicEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side\nrendering.\n\n### useLiveRef\n\nA `React.Ref` that keeps track of the passed `value`.\n\n#### Parameters\n\n-   `value` **T** \n\nReturns **React.MutableRefObject&lt;T>** \n\n### useSealedState\n\nReact custom hook that returns the very first value passed to `initialState`,\neven if it changes between re-renders.\n\n#### Parameters\n\n-   `initialState` **SealedInitialState&lt;T>** \n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **React.EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
      "readmeFilename": "README.md",
      "_id": "reakit-utils@0.15.0-alpha.0",
      "_nodeVersion": "12.18.3",
      "_npmVersion": "lerna/3.22.1/node@v12.18.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-vNEjbzCuUIXjb+jysaD7UKCXgJqrQeTkZpCvCDhul7SnETExd8Ecnvv8MAuOoJbUmbor4YRLXDLTYiSNDKCmtA==",
        "shasum": "cf70469c05c3a51dc6a4e9df919aeeecba0e93f3",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.15.0-alpha.0.tgz",
        "fileCount": 272,
        "unpackedSize": 197743,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUFcXCRA9TVsSAnZWagAAk6YP/1XppS3ET9Tcd38wwi2T\nrqQyo6c57FCMIjguPWrh/IPvV03myG8TMMXWI+Unuqhj8BFp9oFGqO2BLOkq\nhdDsxy2QWu3EhDm+aiuTePix7rykUd8HJh+QgSTQ4Qyre0FAoiKlNMLRI6ha\neOXpfQmVk/WRu9hcYwq8NDmTFy4u7NIMmqNPIsxuTRDgFvCw6Xs0yfHd7Qd4\nrhgkJbrSZ1A2CZ+7XC+DwWVRSADx0OHvAHPvMdHJ86Pcc/Jn5FUnvNsfndch\nXWk+KHEBFhvkhqc2sKFzhmbSY7tXmPhMdT9huUUhIjaqLIM9bXQiqQlYRiYf\nYlLHVXSR6/N2AAJZUDhkzfwEg2IfV8UwgaWhXoQjmDD7MxiR4Fb0codv/FQL\n4vg0xH7DZ0nqMdm2Njcm/WN2zh+VW3vG0ytMRZild7rYbTZiWUsYHoMZMSac\nSr2nEsU4ezgA90TeWoSL+nsCq/9U83YPfM+0EUAFIwz2+UVdkylD8fgNhCxg\nHiyLbphV9zcoiFEo83W8Qc3ihBhX+jd+4/5VTWg6OSq0Ty3+SnBejTvUlWqb\nr5nsEn9h/0n6KGqdvXT4vYuY8l7FQfdjv/toHgcUNN64rPVfwh91QhlrUSvF\nL5AfRUe+2qEEygVdmXlP0IruUJHSS2isti79UVvVDDFf6VT9QeBSrO85eTor\nAO9g\r\n=Nxcb\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCVg8tqrue73BXErgG6Xxx5UPtCirUQrOsjsVvxeEuPIgIhAKrfTCbhcaHY7rbp3fe8g4gFGl+BqDH8i7YvuapPWAiA"
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.15.0-alpha.0_1599100694664_0.3929121729799294"
      },
      "_hasShrinkwrap": false
    },
    "0.15.0-alpha.1": {
      "name": "reakit-utils",
      "version": "0.15.0-alpha.1",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "5fdb8b15e2a86f35cca6efec7e184e1a067fe50b",
      "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [applyState](#applystate)\n-   [canUseDOM](#canusedom)\n-   [closest](#closest)\n-   [contains](#contains)\n-   [createEvent](#createevent)\n-   [createOnKeyDown](#createonkeydown)\n-   [ensureFocus](#ensurefocus)\n-   [fireBlurEvent](#fireblurevent)\n-   [fireEvent](#fireevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [flatten](#flatten)\n-   [getActiveElement](#getactiveelement)\n-   [getDocument](#getdocument)\n-   [getNextActiveElementOnBlur](#getnextactiveelementonblur)\n-   [getWindow](#getwindow)\n-   [hasFocus](#hasfocus)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [isButton](#isbutton)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPortalEvent](#isportalevent)\n-   [isPromise](#ispromise)\n-   [isSelfTarget](#isselftarget)\n-   [isTextField](#istextfield)\n-   [matches](#matches)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [shallowEqual](#shallowequal)\n-   [splitProps](#splitprops)\n-   [tabbable](#tabbable)\n-   [toArray](#toarray)\n-   [types](#types)\n-   [useForkRef](#useforkref)\n-   [useIsomorphicEffect](#useisomorphiceffect)\n-   [useLiveRef](#useliveref)\n-   [useSealedState](#usesealedstate)\n-   [useUpdateEffect](#useupdateeffect)\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **React.SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### canUseDOM\n\nIt's `true` if it is running in a browser environment or `false` if it is not (SSR).\n\n#### Examples\n\n```javascript\nimport { canUseDOM } from \"reakit-utils\";\n\nconst title = canUseDOM ? document.title : \"\";\n```\n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\n### contains\n\nSimilar to `Element.prototype.contains`, but a little bit faster when\n`element` is the same as `child`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { contains } from \"reakit-utils\";\n\ncontains(document.getElementById(\"parent\"), document.getElementById(\"child\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit?** \n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createEvent(el, \"blur\", { bubbles: false }));\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### createOnKeyDown\n\nReturns an `onKeyDown` handler to be passed to a component.\n\n#### Parameters\n\n-   `options` **Options**  (optional, default `{}`)\n    -   `options.keyMap`  \n    -   `options.onKey`  \n    -   `options.stopPropagation`  \n    -   `options.onKeyDown`  \n    -   `options.shouldKeyDown`   (optional, default `()=>true`)\n    -   `options.preventDefault`   (optional, default `true`)\n\nReturns **React.KeyboardEventHandler** \n\n### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.preventScroll`  \n    -   `$1.isActive`   (optional, default `hasFocus`)\n\n#### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### fireBlurEvent\n\nCreates and dispatches a blur event in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `eventInit` **FocusEventInit?** \n\n#### Examples\n\n```javascript\nimport { fireBlurEvent } from \"reakit-utils\";\n\nfireBlurEvent(document.getElementById(\"id\"));\n```\n\n### fireEvent\n\nCreates and dispatches `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### getDocument\n\nReturns `element.ownerDocument || document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### getNextActiveElementOnBlur\n\nCross-browser method that returns the next active element (the element that\nis receiving focus) after a blur event is dispatched. It receives the blur\nevent object as the argument.\n\n#### Parameters\n\n-   `event` **(React.FocusEvent | [FocusEvent](https://developer.mozilla.org/docs/Web/API/FocusEvent))** \n\n#### Examples\n\n```javascript\nimport { getNextActiveElementOnBlur } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\nelement.addEventListener(\"blur\", (event) => {\n  const nextActiveElement = getNextActiveElementOnBlur(event);\n});\n```\n\n### getWindow\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### hasFocus\n\nChecks if `element` has focus. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocus } from \"reakit-utils\";\n\nhasFocus(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### hasFocusWithin\n\nChecks if `element` has focus within. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\nisButton(document.querySelector(\"div[role='button']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element), [Event](https://developer.mozilla.org/docs/Web/API/Event)>** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\n#### Examples\n\n```javascript\nimport { isTextField } from \"reakit-utils\";\n\nisTextField(document.querySelector(\"div\")); // false\nisTextField(document.querySelector(\"input\")); // true\nisTextField(document.querySelector(\"input[type='button']\")); // false\nisTextField(document.querySelector(\"textarea\")); // true\nisTextField(document.querySelector(\"div[contenteditable='true']\")); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **T** \n-   `index` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `objA` **Record&lt;any, any>?** \n-   `objB` **Record&lt;any, any>?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### splitProps\n\nSplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n### tabbable\n\n#### isFocusable\n\nChecks whether `element` is focusable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getClosestFocusable\n\nReturns the closest focusable element.\n\n##### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **T** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n#### SetState\n\nState hook setter.\n\nType: React.Dispatch&lt;React.SetStateAction&lt;T>>\n\n### useForkRef\n\nMerges up to two React Refs into a single memoized function React Ref so you\ncan pass it to an element.\n\n#### Parameters\n\n-   `refA` **React.Ref&lt;any>?** \n-   `refB` **React.Ref&lt;any>?** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = React.forwardRef((props, ref) => {\n  const internalRef = React.useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useIsomorphicEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side\nrendering.\n\n### useLiveRef\n\nA `React.Ref` that keeps track of the passed `value`.\n\n#### Parameters\n\n-   `value` **T** \n\nReturns **React.MutableRefObject&lt;T>** \n\n### useSealedState\n\nReact custom hook that returns the very first value passed to `initialState`,\neven if it changes between re-renders.\n\n#### Parameters\n\n-   `initialState` **SealedInitialState&lt;T>** \n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **React.EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
      "readmeFilename": "README.md",
      "_id": "reakit-utils@0.15.0-alpha.1",
      "_nodeVersion": "12.18.3",
      "_npmVersion": "lerna/3.22.1/node@v12.18.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-yTt5riX+mg8SITJTnVKg4177pwIK/x767pCnc1RYff1AZsdQzQnHa03iTeKpXzDMv5SMB2IhbAOhQZg70ZJJUA==",
        "shasum": "8f06b9e142767871c0f872cfafe81fa7e9f6ab65",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.15.0-alpha.1.tgz",
        "fileCount": 272,
        "unpackedSize": 197743,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVA3oCRA9TVsSAnZWagAA7uwP/3bG6nQZRh6GiKq5gg+y\nRuyeFlkQvSixlc12B3TXAzT5p8+2BE9BL/Ez7u04LjshnKnL7SLWBJWc4gZR\nUEBb6xk2MxId5E2x+oaBKXFeRHGBbhcuH7T/SNjfmm4m2jNsHmQXwlU0o2Vx\nsIC7Yp2BRMeGyeelXWTVH3uzhpwrROwW4foOk0yHxddfRUCpI9G7dIw1ulYD\ncW0jqH3e1HuvL8yehQ2tSw0YOHknTyV3p43vDjOkNNL98Idbaidkl+ru8+v6\nZ66GNInJdC1aeccqBZ7M1bxiQ4yU376jz2aw74XuvHKci9HtrgnvAAWokxIR\njVSgFiqpCO+4Uhasm2XZJF7yW6S3pmGFgYnM6ebQNVHzCYGkyzv5So1whWTr\n80Ch1SKtX1f37u2ud+3GnRx4Ua2I/QzD/eRwyOvA9eJoHvz4i+vJXu8Jnlds\nWnS/OyD9Q4LMP5WiZH3rCcdkwm0xaQhllVmYhaLbz/Z7Yz/OYkGMylS+vo7D\n57rQuNnCqkFVokUrBySGUbGC6x2/6vfPeaQXm7RrkuFUm5BylWcOUuoA2e3c\nqTN8Gq8GvMzMGXR0oudjeeHF82SGIJcYEUYWVaN+KmmQzfL/wi2Dep1RJHV9\nMXn817/PIymfzvQAsHm+HWIBT/E0sr1n0GNFjqN+mqgvn69hx5h7+GltzmmY\nlaTk\r\n=UEzI\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCJVkA63P27q6Zn6mWWxfGGhiCtUHU7vUXnOapFsA81nAIgIWzAWh2n8SS6utQLiu0631pdzyK73mYOJdGDseY0yjY="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.15.0-alpha.1_1599344104089_0.623053238746335"
      },
      "_hasShrinkwrap": false
    },
    "0.15.0-alpha.2": {
      "name": "reakit-utils",
      "version": "0.15.0-alpha.2",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "12d6d799ec5e20a7db6a5813c74d77b808d2925b",
      "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [applyState](#applystate)\n-   [canUseDOM](#canusedom)\n-   [closest](#closest)\n-   [contains](#contains)\n-   [createEvent](#createevent)\n-   [createOnKeyDown](#createonkeydown)\n-   [ensureFocus](#ensurefocus)\n-   [fireBlurEvent](#fireblurevent)\n-   [fireEvent](#fireevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [flatten](#flatten)\n-   [getActiveElement](#getactiveelement)\n-   [getDocument](#getdocument)\n-   [getNextActiveElementOnBlur](#getnextactiveelementonblur)\n-   [getWindow](#getwindow)\n-   [hasFocus](#hasfocus)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [isButton](#isbutton)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPortalEvent](#isportalevent)\n-   [isPromise](#ispromise)\n-   [isSelfTarget](#isselftarget)\n-   [isTextField](#istextfield)\n-   [matches](#matches)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [shallowEqual](#shallowequal)\n-   [splitProps](#splitprops)\n-   [tabbable](#tabbable)\n-   [toArray](#toarray)\n-   [types](#types)\n-   [useForkRef](#useforkref)\n-   [useIsomorphicEffect](#useisomorphiceffect)\n-   [useLiveRef](#useliveref)\n-   [useSealedState](#usesealedstate)\n-   [useUpdateEffect](#useupdateeffect)\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **React.SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### canUseDOM\n\nIt's `true` if it is running in a browser environment or `false` if it is not (SSR).\n\n#### Examples\n\n```javascript\nimport { canUseDOM } from \"reakit-utils\";\n\nconst title = canUseDOM ? document.title : \"\";\n```\n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\n### contains\n\nSimilar to `Element.prototype.contains`, but a little bit faster when\n`element` is the same as `child`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { contains } from \"reakit-utils\";\n\ncontains(document.getElementById(\"parent\"), document.getElementById(\"child\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit?** \n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createEvent(el, \"blur\", { bubbles: false }));\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### createOnKeyDown\n\nReturns an `onKeyDown` handler to be passed to a component.\n\n#### Parameters\n\n-   `options` **Options**  (optional, default `{}`)\n    -   `options.keyMap`  \n    -   `options.onKey`  \n    -   `options.stopPropagation`  \n    -   `options.onKeyDown`  \n    -   `options.shouldKeyDown`   (optional, default `()=>true`)\n    -   `options.preventDefault`   (optional, default `true`)\n\nReturns **React.KeyboardEventHandler** \n\n### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.preventScroll`  \n    -   `$1.isActive`   (optional, default `hasFocus`)\n\n#### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### fireBlurEvent\n\nCreates and dispatches a blur event in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `eventInit` **FocusEventInit?** \n\n#### Examples\n\n```javascript\nimport { fireBlurEvent } from \"reakit-utils\";\n\nfireBlurEvent(document.getElementById(\"id\"));\n```\n\n### fireEvent\n\nCreates and dispatches `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### getDocument\n\nReturns `element.ownerDocument || document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### getNextActiveElementOnBlur\n\nCross-browser method that returns the next active element (the element that\nis receiving focus) after a blur event is dispatched. It receives the blur\nevent object as the argument.\n\n#### Parameters\n\n-   `event` **(React.FocusEvent | [FocusEvent](https://developer.mozilla.org/docs/Web/API/FocusEvent))** \n\n#### Examples\n\n```javascript\nimport { getNextActiveElementOnBlur } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\nelement.addEventListener(\"blur\", (event) => {\n  const nextActiveElement = getNextActiveElementOnBlur(event);\n});\n```\n\n### getWindow\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### hasFocus\n\nChecks if `element` has focus. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocus } from \"reakit-utils\";\n\nhasFocus(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### hasFocusWithin\n\nChecks if `element` has focus within. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\nisButton(document.querySelector(\"div[role='button']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element), [Event](https://developer.mozilla.org/docs/Web/API/Event)>** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\n#### Examples\n\n```javascript\nimport { isTextField } from \"reakit-utils\";\n\nisTextField(document.querySelector(\"div\")); // false\nisTextField(document.querySelector(\"input\")); // true\nisTextField(document.querySelector(\"input[type='button']\")); // false\nisTextField(document.querySelector(\"textarea\")); // true\nisTextField(document.querySelector(\"div[contenteditable='true']\")); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **T** \n-   `index` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `objA` **Record&lt;any, any>?** \n-   `objB` **Record&lt;any, any>?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### splitProps\n\nSplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n### tabbable\n\n#### isFocusable\n\nChecks whether `element` is focusable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getClosestFocusable\n\nReturns the closest focusable element.\n\n##### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **T** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n#### SetState\n\nState hook setter.\n\nType: React.Dispatch&lt;React.SetStateAction&lt;T>>\n\n### useForkRef\n\nMerges up to two React Refs into a single memoized function React Ref so you\ncan pass it to an element.\n\n#### Parameters\n\n-   `refA` **React.Ref&lt;any>?** \n-   `refB` **React.Ref&lt;any>?** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = React.forwardRef((props, ref) => {\n  const internalRef = React.useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useIsomorphicEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side\nrendering.\n\n### useLiveRef\n\nA `React.Ref` that keeps track of the passed `value`.\n\n#### Parameters\n\n-   `value` **T** \n\nReturns **React.MutableRefObject&lt;T>** \n\n### useSealedState\n\nReact custom hook that returns the very first value passed to `initialState`,\neven if it changes between re-renders.\n\n#### Parameters\n\n-   `initialState` **SealedInitialState&lt;T>** \n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **React.EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
      "readmeFilename": "README.md",
      "_id": "reakit-utils@0.15.0-alpha.2",
      "_nodeVersion": "12.18.3",
      "_npmVersion": "lerna/3.22.1/node@v12.18.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-+x5LdmlK9dhS9LQG+45xUT5oIbVV4T1mo/XMR8fw2SZtsDZJGjmj0jCCbKoNOSH1BIphYB5NKhP+ABdHGE5IvQ==",
        "shasum": "1e4572fc11b264a22321af533d9aa6c4c34d108f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.15.0-alpha.2.tgz",
        "fileCount": 272,
        "unpackedSize": 197743,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVEYuCRA9TVsSAnZWagAA/sUP/jBAH+AFogBEO4IxxAOW\nyNvNVyOy3usLZw/Kl5cjVdDzqLDQLUPCC3pjppvf6zQ8v4g/GPKrxzzyvkDI\nyxPzh42U56s+pQg14b0NeLRCxKvlJrXHhfwXwq8BEU3IPhWXZRzuRvqrnzyX\nCVXmPIjo2+CSYHyRZmsUjHHJaIz+PlkIbtFHQxfaiiffLV2xkxvmPLTN4RDK\nrQvqZVtgqeJQtk1sQWz0rMWIcoJeqlvOyxUS3hNJife0JQ9Q1O5IVSS/DwDH\nqUrDaP85h91N2uVcEM/tbaWxnlXvtSA+ucZQSV6otR1c7xbISqwsCFgjEYT2\n61UHxE+tEwQxs+7y2uz0/clyswN+Ci/Fe1hXcFCJ0Mb5GtlcxDLIj16utV/0\nJAN1Z9Blg5XMo34/F0uH5DA/dwZ4CsnAaDQ5qDPbiqslz7n1W0osu0oBseyA\nYCDa/ZQOorGm9gBV6WWB+YtZFJi1W4SH9x75LTE7yBdXwfsJpqfqs2t/YctZ\n4BVIdvzxFLmzqTPSmugT+M6je9HjSQuz8KGsq3E1kfFCp/4TpjOVNWlhGFGs\n5n/0vZeEfMg3oZwvxHaytYMM89OG+OSLIGEmD53hpGx4Q5CAJlXvTJhTSMwn\npoNC3TXCInZ40DDX/0/uOZYklXsS0VqhzohTpPAsyaWBiIUwDSRQQ8hgeygx\nyogc\r\n=w5sV\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIBnclRMqUgHV9WcA1SzrYQQahbHdKeHM32Aspk6BZWTRAiAl6WHzH6eSN/MfP1rio+hrzSf9krcm5o1bi4AB1PFB7w=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.15.0-alpha.2_1599358510046_0.15644039331363047"
      },
      "_hasShrinkwrap": false
    },
    "0.14.4": {
      "name": "reakit-utils",
      "version": "0.14.4",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "b6e5ec820dd5fb1f347c2349866e3d0de638b7f4",
      "_id": "reakit-utils@0.14.4",
      "_nodeVersion": "12.18.3",
      "_npmVersion": "lerna/3.22.1/node@v12.18.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-jDEf/NmZVJ6fs10G16ifD+RFhQikSLN7VfjRHu0CPoUj4g6lFXd5PPcRXCY81qiqc9FVHjr2d2fmsw1hs6xUxA==",
        "shasum": "1ecf035faf58960ba48eac2963f70269596effcf",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.14.4.tgz",
        "fileCount": 272,
        "unpackedSize": 198968,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaoQ7CRA9TVsSAnZWagAAidMP/ROF+XCpUYcHPKv7QMq3\nk4GlAck0FzRCsgBkvjwC8woAoG6FTr0Nw1HRuhoBqK+cbJ4v5fXUNKGnLgES\nMQQoe7cdyvC90YsNJT8zq1Zre1GkH0MU4RtTlJWyFkiAfYrE/TGO6tWtftcL\nSWUTxDMfWgkZIo1+5ivv4g7/DKZk2i4HDcmUIL2QLAY/MV/xMscc8hWMg4mI\nYis/Ag+h4PlqUN23hsLriyLTEAB8VU5NvZKosMCaMAQ63bWgh3P7zzdJmHKq\n4RC4vz5ieCbLdd6lQle/dl6+l+YLMF60e3IcV7B/Ub4Ch6GTd2ZrgdH08Hi/\nPw5WSA/L6R1r4b0oZV8xQE6V4DuehB27KlFfL5aD6SzixZE9sbwY+nzOX2Xr\ni4PWYr0CgoH4+EpIQ711JImBCJ8St/MYz5VjpRaE+hk7L0GdGbwMK90SI2fp\nC5uxVS1SJ2jSkJvVnb5WZe9XgMKd1hF8E05lIn3XgBqYEq21WN8rb3ik/irR\nvMbOGXHR5TJVow9SDAwoplafy8juYTQT01dvoJw2CDLDuWBa4kXOzlPxJXR9\np4GBOMAmm5dXCW7fFyiVfg0e4JbZX7QPP0bqdAb6w6RRgRYiCa0upPO++2ac\nQPKh/pc8CT3NV0/KPUze0zyvbCpYjP88lCrz4Sqcw/DnKAQjAaOkg0/T8UYN\nSsiF\r\n=EL9j\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDBzHAIQRhzJaVwghPTyWGYnKB5arasgLz+FGOPXjgtwAIgMVRdBGAEXQig+DM/o4D5PXpBFEGyuOUZYDdEM8+vmO0="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.14.4_1600816186972_0.7824782897984486"
      },
      "_hasShrinkwrap": false
    },
    "0.15.0-alpha.3": {
      "name": "reakit-utils",
      "version": "0.15.0-alpha.3",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "0528ad21b05f8c9919cb347c52776819a4739c15",
      "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [applyState](#applystate)\n-   [canUseDOM](#canusedom)\n-   [closest](#closest)\n-   [contains](#contains)\n-   [createEvent](#createevent)\n-   [createOnKeyDown](#createonkeydown)\n-   [ensureFocus](#ensurefocus)\n-   [fireBlurEvent](#fireblurevent)\n-   [fireEvent](#fireevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [flatten](#flatten)\n-   [getActiveElement](#getactiveelement)\n-   [getDocument](#getdocument)\n-   [getNextActiveElementOnBlur](#getnextactiveelementonblur)\n-   [getWindow](#getwindow)\n-   [hasFocus](#hasfocus)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [isButton](#isbutton)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPortalEvent](#isportalevent)\n-   [isPromise](#ispromise)\n-   [isSelfTarget](#isselftarget)\n-   [isTextField](#istextfield)\n-   [matches](#matches)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [shallowEqual](#shallowequal)\n-   [splitProps](#splitprops)\n-   [tabbable](#tabbable)\n-   [toArray](#toarray)\n-   [types](#types)\n-   [useForkRef](#useforkref)\n-   [useIsomorphicEffect](#useisomorphiceffect)\n-   [useLiveRef](#useliveref)\n-   [useSealedState](#usesealedstate)\n-   [useUpdateEffect](#useupdateeffect)\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **React.SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### canUseDOM\n\nIt's `true` if it is running in a browser environment or `false` if it is not (SSR).\n\n#### Examples\n\n```javascript\nimport { canUseDOM } from \"reakit-utils\";\n\nconst title = canUseDOM ? document.title : \"\";\n```\n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\n### contains\n\nSimilar to `Element.prototype.contains`, but a little bit faster when\n`element` is the same as `child`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { contains } from \"reakit-utils\";\n\ncontains(document.getElementById(\"parent\"), document.getElementById(\"child\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit?** \n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createEvent(el, \"blur\", { bubbles: false }));\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### createOnKeyDown\n\nReturns an `onKeyDown` handler to be passed to a component.\n\n#### Parameters\n\n-   `options` **Options**  (optional, default `{}`)\n    -   `options.keyMap`  \n    -   `options.onKey`  \n    -   `options.stopPropagation`  \n    -   `options.onKeyDown`  \n    -   `options.shouldKeyDown`   (optional, default `()=>true`)\n    -   `options.preventDefault`   (optional, default `true`)\n\nReturns **React.KeyboardEventHandler** \n\n### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.preventScroll`  \n    -   `$1.isActive`   (optional, default `hasFocus`)\n\n#### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### fireBlurEvent\n\nCreates and dispatches a blur event in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `eventInit` **FocusEventInit?** \n\n#### Examples\n\n```javascript\nimport { fireBlurEvent } from \"reakit-utils\";\n\nfireBlurEvent(document.getElementById(\"id\"));\n```\n\n### fireEvent\n\nCreates and dispatches `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### getDocument\n\nReturns `element.ownerDocument || document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### getNextActiveElementOnBlur\n\nCross-browser method that returns the next active element (the element that\nis receiving focus) after a blur event is dispatched. It receives the blur\nevent object as the argument.\n\n#### Parameters\n\n-   `event` **(React.FocusEvent | [FocusEvent](https://developer.mozilla.org/docs/Web/API/FocusEvent))** \n\n#### Examples\n\n```javascript\nimport { getNextActiveElementOnBlur } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\nelement.addEventListener(\"blur\", (event) => {\n  const nextActiveElement = getNextActiveElementOnBlur(event);\n});\n```\n\n### getWindow\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### hasFocus\n\nChecks if `element` has focus. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocus } from \"reakit-utils\";\n\nhasFocus(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### hasFocusWithin\n\nChecks if `element` has focus within. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\nisButton(document.querySelector(\"div[role='button']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element), [Event](https://developer.mozilla.org/docs/Web/API/Event)>** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\n#### Examples\n\n```javascript\nimport { isTextField } from \"reakit-utils\";\n\nisTextField(document.querySelector(\"div\")); // false\nisTextField(document.querySelector(\"input\")); // true\nisTextField(document.querySelector(\"input[type='button']\")); // false\nisTextField(document.querySelector(\"textarea\")); // true\nisTextField(document.querySelector(\"div[contenteditable='true']\")); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **T** \n-   `index` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `objA` **Record&lt;any, any>?** \n-   `objB` **Record&lt;any, any>?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### splitProps\n\nSplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n### tabbable\n\n#### isFocusable\n\nChecks whether `element` is focusable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getClosestFocusable\n\nReturns the closest focusable element.\n\n##### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **T** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n#### SetState\n\nState hook setter.\n\nType: React.Dispatch&lt;React.SetStateAction&lt;T>>\n\n### useForkRef\n\nMerges up to two React Refs into a single memoized function React Ref so you\ncan pass it to an element.\n\n#### Parameters\n\n-   `refA` **React.Ref&lt;any>?** \n-   `refB` **React.Ref&lt;any>?** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = React.forwardRef((props, ref) => {\n  const internalRef = React.useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useIsomorphicEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side\nrendering.\n\n### useLiveRef\n\nA `React.Ref` that keeps track of the passed `value`.\n\n#### Parameters\n\n-   `value` **T** \n\nReturns **React.MutableRefObject&lt;T>** \n\n### useSealedState\n\nReact custom hook that returns the very first value passed to `initialState`,\neven if it changes between re-renders.\n\n#### Parameters\n\n-   `initialState` **SealedInitialState&lt;T>** \n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **React.EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
      "readmeFilename": "README.md",
      "_id": "reakit-utils@0.15.0-alpha.3",
      "_nodeVersion": "12.18.3",
      "_npmVersion": "lerna/3.22.1/node@v12.18.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-79/QEOjJwYC3Tdk4jBc23VVgbsHsX+ohB/FNbIjcxqxzDcPLw0pIc4323xVP5CH+XOrp63shOTZPGNzp/WDIMg==",
        "shasum": "25afb79c30504b681b8dd2b8849101b19f39aeb2",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.15.0-alpha.3.tgz",
        "fileCount": 272,
        "unpackedSize": 198976,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaoaoCRA9TVsSAnZWagAAjJwP/0t/sc62uxXQgjUEMETg\nRzsbd9L3kmOVGKF46OUdsAMgnd15T4ufRRCD4jr6nod3FCRDFltjopXy3oGR\nb8NhgMccdEhi6u2ilV97FPlkwvpO9xoXWTStXcrfwXrAnXb70yujWBv1fqWh\nVb3AVN9IlvjVC5vmdIgiyvyZ+eX5sf9CozS5sz7moK47fQysUJLUygGQWhf8\noi73RskLOW2vg7b21mp3RpNjMD1coyQegGyCERUiac4Wi68wVTq8CDvHXiDH\nwXE/eV0DMYNEN0uhQXj0FG6sueZLEOX337H/t+8jq+X/IhZz+FjSZ1KhA3xI\nBD9kR8jEAfc8bYHkg143aSfgkL7RlXP53Iqhy9rwcOAX9K7BO6wBYMUqt8Rr\nq47WsRlnkoJIZnpr7zW1MXb4OxezNGlSA3cRjQGz55RVmr6Xd30EJQFcb/I7\n7To6e+6lEAGVmRUv/3WDagDFif/MhWO1ULt1dqwhy/xueaSrEIoaSvV5+/lO\n4HcK8QmDJ+oDNDGujQdalYAfaSrx5j4lFApsh7jVXnh5sMcUNq4t3jFZii4R\nirRNIEp9TMGZ2hN0rCYY3GG/yPBD2MZ185ebb5KDNkuu+twUfBMIeVTLmkRm\n3foitjLSskozzeCQ1U2DfCdPBBEq7UmP41CRBObNL4h6Rx+70P7Q9WsaO+Zy\ncmQE\r\n=EZ0Z\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIGmEsJtdBFR6zquzJnD7UcII54I4+nES8uYhbzIyWkNRAiBQkZD8Ue/OJHWE5WywGIowKt/uSm0ZfVSrgz7LpOf3Zg=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.15.0-alpha.3_1600816808492_0.5712990152763138"
      },
      "_hasShrinkwrap": false
    },
    "0.15.0-alpha.4": {
      "name": "reakit-utils",
      "version": "0.15.0-alpha.4",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "4ed846d0a17e655d726572910b57b9ad3ebc235d",
      "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [applyState](#applystate)\n-   [canUseDOM](#canusedom)\n-   [closest](#closest)\n-   [contains](#contains)\n-   [createEvent](#createevent)\n-   [createOnKeyDown](#createonkeydown)\n-   [ensureFocus](#ensurefocus)\n-   [fireBlurEvent](#fireblurevent)\n-   [fireEvent](#fireevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [flatten](#flatten)\n-   [getActiveElement](#getactiveelement)\n-   [getDocument](#getdocument)\n-   [getNextActiveElementOnBlur](#getnextactiveelementonblur)\n-   [getWindow](#getwindow)\n-   [hasFocus](#hasfocus)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [isButton](#isbutton)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPortalEvent](#isportalevent)\n-   [isPromise](#ispromise)\n-   [isSelfTarget](#isselftarget)\n-   [isTextField](#istextfield)\n-   [matches](#matches)\n-   [normalizePropsAreEqual](#normalizepropsareequal)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [shallowEqual](#shallowequal)\n-   [\\_\\_deprecatedSplitProps](#__deprecatedsplitprops)\n-   [splitProps](#splitprops)\n-   [tabbable](#tabbable)\n-   [toArray](#toarray)\n-   [types](#types)\n-   [useForkRef](#useforkref)\n-   [useIsomorphicEffect](#useisomorphiceffect)\n-   [useLiveRef](#useliveref)\n-   [useSealedState](#usesealedstate)\n-   [useUpdateEffect](#useupdateeffect)\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **React.SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### canUseDOM\n\nIt's `true` if it is running in a browser environment or `false` if it is not (SSR).\n\n#### Examples\n\n```javascript\nimport { canUseDOM } from \"reakit-utils\";\n\nconst title = canUseDOM ? document.title : \"\";\n```\n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\n### contains\n\nSimilar to `Element.prototype.contains`, but a little bit faster when\n`element` is the same as `child`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { contains } from \"reakit-utils\";\n\ncontains(document.getElementById(\"parent\"), document.getElementById(\"child\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit?** \n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst el = document.getElementById(\"id\");\nel.dispatchEvent(createEvent(el, \"blur\", { bubbles: false }));\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### createOnKeyDown\n\nReturns an `onKeyDown` handler to be passed to a component.\n\n#### Parameters\n\n-   `options` **Options**  (optional, default `{}`)\n    -   `options.keyMap`  \n    -   `options.onKey`  \n    -   `options.stopPropagation`  \n    -   `options.onKeyDown`  \n    -   `options.shouldKeyDown`   (optional, default `()=>true`)\n    -   `options.preventDefault`   (optional, default `true`)\n\nReturns **React.KeyboardEventHandler** \n\n### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.preventScroll`  \n    -   `$1.isActive`   (optional, default `hasFocus`)\n\n#### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### fireBlurEvent\n\nCreates and dispatches a blur event in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `eventInit` **FocusEventInit?** \n\n#### Examples\n\n```javascript\nimport { fireBlurEvent } from \"reakit-utils\";\n\nfireBlurEvent(document.getElementById(\"id\"));\n```\n\n### fireEvent\n\nCreates and dispatches `Event` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches `KeyboardEvent` in a way that also works on IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### getDocument\n\nReturns `element.ownerDocument || document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### getNextActiveElementOnBlur\n\nCross-browser method that returns the next active element (the element that\nis receiving focus) after a blur event is dispatched. It receives the blur\nevent object as the argument.\n\n#### Parameters\n\n-   `event` **(React.FocusEvent | [FocusEvent](https://developer.mozilla.org/docs/Web/API/FocusEvent))** \n\n#### Examples\n\n```javascript\nimport { getNextActiveElementOnBlur } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\nelement.addEventListener(\"blur\", (event) => {\n  const nextActiveElement = getNextActiveElementOnBlur(event);\n});\n```\n\n### getWindow\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### hasFocus\n\nChecks if `element` has focus. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocus } from \"reakit-utils\";\n\nhasFocus(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### hasFocusWithin\n\nChecks if `element` has focus within. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\nisButton(document.querySelector(\"div[role='button']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element), [Event](https://developer.mozilla.org/docs/Web/API/Event)>** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **React.SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\n#### Examples\n\n```javascript\nimport { isTextField } from \"reakit-utils\";\n\nisTextField(document.querySelector(\"div\")); // false\nisTextField(document.querySelector(\"input\")); // true\nisTextField(document.querySelector(\"input[type='button']\")); // false\nisTextField(document.querySelector(\"textarea\")); // true\nisTextField(document.querySelector(\"div[contenteditable='true']\")); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### normalizePropsAreEqual\n\nThis higher order functions take `propsAreEqual` function and\nreturns a new function which normalizes the props.\n\nNormalizing in our case is making sure the `propsAreEqual` works with\nboth version 1 (object spreading) and version 2 (state object) state passing.\n\nTo achieve this, the returned function in case of a state object\nwill spread the state object in both `prev` and \\`next props.\n\nOther case it just returns the function as is which makes sure\nthat we are still backward compatible\n\n#### Parameters\n\n-   `propsAreEqual` **function (prev: O, next: O): [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\nReturns **function (prev: PropsWithAs&lt;O, T>, next: PropsWithAs&lt;O, T>): [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **T** \n-   `index` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `objA` **Record&lt;any, any>?** \n-   `objB` **Record&lt;any, any>?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### \\_\\_deprecatedSplitProps\n\nSplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n**Meta**\n\n-   **deprecated**: will be removed in version 2\n\n\n### splitProps\n\nSplits an object (`props`) into a tuple where the first item\nis the `state` property, and the second item is the rest of the properties.\n\nIt is also backward compatible with version 1. If `keys` are passed then\nsplits an object (`props`) into a tuple where the first item is an object\nwith the passed `keys`, and the second item is an object with these keys\nomitted.\n\n#### Parameters\n\n-   `props` **T** \n-   `keys` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)?** \n\n#### Examples\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ a: \"a\", b: \"b\" }, [\"a\"]); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\n```javascript\nimport { splitProps } from \"reakit-utils\";\n\nsplitProps({ state: { a: \"a\" }, b: \"b\" }); // [{ a: \"a\" }, { b: \"b\" }]\n```\n\nReturns **\\[any, Omit&lt;T, K>]** \n\n### tabbable\n\n#### isFocusable\n\nChecks whether `element` is focusable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n##### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n##### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n#### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n#### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n##### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n#### getClosestFocusable\n\nReturns the closest focusable element.\n\n##### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **T** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n#### SetState\n\nState hook setter.\n\nType: React.Dispatch&lt;React.SetStateAction&lt;T>>\n\n### useForkRef\n\nMerges up to two React Refs into a single memoized function React Ref so you\ncan pass it to an element.\n\n#### Parameters\n\n-   `refA` **React.Ref&lt;any>?** \n-   `refB` **React.Ref&lt;any>?** \n\n#### Examples\n\n```javascript\nimport React from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = React.forwardRef((props, ref) => {\n  const internalRef = React.useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useIsomorphicEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side\nrendering.\n\n### useLiveRef\n\nA `React.Ref` that keeps track of the passed `value`.\n\n#### Parameters\n\n-   `value` **T** \n\nReturns **React.MutableRefObject&lt;T>** \n\n### useSealedState\n\nReact custom hook that returns the very first value passed to `initialState`,\neven if it changes between re-renders.\n\n#### Parameters\n\n-   `initialState` **SealedInitialState&lt;T>** \n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **React.EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
      "readmeFilename": "README.md",
      "_id": "reakit-utils@0.15.0-alpha.4",
      "_nodeVersion": "12.18.3",
      "_npmVersion": "lerna/3.22.1/node@v12.18.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-nx73o7koU1TwvcAvQNFdPjuvgJprZvdTbqosLAKXm4CQ7TkfdPwwzRqRIK9sKHdSyOz6UaVKMuN1yom1jviftg==",
        "shasum": "7f22ed2a1d65adb0948d7bcb1cabb2a4daf280e5",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.15.0-alpha.4.tgz",
        "fileCount": 251,
        "unpackedSize": 213013,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfk6QECRA9TVsSAnZWagAAAA8P/1rTCMzYx3SRGKkGXju6\n0vZ05ksLl7FOutuK1/r4n/8Zxutvnie+aGrXpv/MBAQHoh35AEqc5Pmhpdcc\nDZ6jtXvCnoLnvpl6An+LuLEQ8xbyq7X/BKkTPJEOGT6NMi3lEQhMKKebjRyy\ngfy5uspRPC699lupAqxpSPhxE0N/OkslEk63AVxCfxR9AVaBQD6BLUJVWLSp\nHMjTx7KYuIaN9toQ03p4LETUOF1GVExp7nOjJW2iytmJVyc3T9J9/Tkw22gr\nv4u68nHbe7O1JpcXxzHAI2fHhBjBkbR5VmnkQPrUaTAvwyOclqubuxR5R5Or\n8YjFHNU5KVk7D9O0J/Xw/Wz3QGdaKzGliMs+VIOrqhe6JWeyuB4HdJcXwzYF\nr8q4aLZVYriOD3dnhQmAK6f6usJdjLYqS5T8YPMtx36BdU5yx+udmH2fjFxY\nVNQaaAMqzR4Rn/y1lLBhYKQiuk2vItiGdTGqByWe+qUqH2VyNgmDtP0teO3G\nydFrKRdO67OMjiALczXfUD/9NGIXp0c6+ta7edHt8a6Vhdh8bNCPFs4Qpob+\nCsjs743Z4IhKZ3FM0V1PN7OO6rpDu6ta9ydYtVLnXMZLsQ821kiv0jjmerAb\nU9qnWDcUzScm3MSvZ+9lDvOVSFQaaX/7O2Z9Xe3bJdTa75agWZFCsExvIznM\nc+jf\r\n=Pu+9\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIG5uQd9XzCBeUL4AgZQ8vPvNN85xeWecThDsTQz3USO0AiEA3nBfT6GxvcBqmpVrTyQDq1bRY1au79dHcl7z70UH7O4="
          }
        ]
      },
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.15.0-alpha.4_1603511299813_0.4289291943612319"
      },
      "_hasShrinkwrap": false
    },
    "0.15.0": {
      "name": "reakit-utils",
      "version": "0.15.0",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0",
        "react-dom": "^16.8.0"
      },
      "gitHead": "57b1238e714bb4dda3984d62268313c180fcc6a8",
      "_id": "reakit-utils@0.15.0",
      "_nodeVersion": "12.18.3",
      "_npmVersion": "lerna/3.22.1/node@v12.18.3+x64 (darwin)",
      "dist": {
        "integrity": "sha512-c9HWaT9XU8KQWj+dhUG01WD+D4EK5bQHq+wVwRUuTXau0e49i4udNxo/t/4M3lXeOS+WfgJ8aC00/0imgzPLTw==",
        "shasum": "41a53e4b768002d282aee76994737f2532be5afc",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.15.0.tgz",
        "fileCount": 251,
        "unpackedSize": 213515,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrTljCRA9TVsSAnZWagAA7awQAIFPgwmobkw7hPYOqIZW\njigDJjupoOccKGyHm8xna84trOSJpHO6KcP5szNDEVWcRQPfXWsJ78hwworv\n3j7yG3N79umyfr28OYGdsBqClq3Q2KPVxbmv6Oe7kx446aAewQ9ppHOjfpGR\nzXh4AXUETefm0+WDzYN2NOGPLp9tg2dTkR4PR88OQRTY64VWKewDis0pX1Ui\nQNwkjp/pcqZ+IPbje0a09k9OkcO25dst2bc834om3A93B/Ou0b1hgGHhZ2Tx\nPM/OtwkOzrpFOPp1HQN96Sf48FCdv0IFersONsDOathzm7nEBEp9YtATPZjh\nG4en5pS2o8xDgGdz6CrKL9jgGoz4Ro8njlhTSiT0DGCq31w3vaq36yRU+HzD\nVeAN7ydq6RMX7CV/R2u17XoZ0hTl/JClr4MAHYy53L01r/S5AJxCoQHV77jy\nFLCffAC9qK3XibPVL0CktCX3EqmR4IayFl9mRZdqmKWUiotTQ0mU0422NwLx\nahLdusP4FrBmSLYt4apd2WcGTP/t39hMFhLjfkfz2zMTd1B/B5Zz3oJ8YWeR\nhlN92kkAwue96upxJX/2ziVCzBFTueYPCbC8kWYYorclV6aem6hkpQDfqWdp\njbuPyLt8hytKjw2y/8PBd9VqBLIUz5fkLRT73SfAF1lnFuBQopdZMAyiZzDq\n8cyR\r\n=QJCi\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDE/WBxYf+4bXbhfyFegL8SAB2wmcTzsLNP+bhm+AmjcQIgQE2+rDSoeSPD24lLBaJwixexNdoNua7GUn+CpwB3q98="
          }
        ]
      },
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.15.0_1605187938853_0.2680589877103077"
      },
      "_hasShrinkwrap": false
    },
    "0.15.1": {
      "name": "reakit-utils",
      "version": "0.15.1",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0 || ^17.0.0",
        "react-dom": "^16.8.0 || ^17.0.0"
      },
      "gitHead": "398e4bad19fa405d93c48121516ab90b91c888a9",
      "_id": "reakit-utils@0.15.1",
      "_nodeVersion": "14.15.0",
      "_npmVersion": "lerna/3.22.1/node@v14.15.0+x64 (darwin)",
      "dist": {
        "integrity": "sha512-6cZgKGvOkAMQgkwU9jdYbHfkuIN1Pr+vwcB19plLvcTfVN0Or10JhIuj9X+JaPZyI7ydqTDFaKNdUcDP69o/+Q==",
        "shasum": "797f0a43f6a1dbc22d161224d5d2272e287dbfe3",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.15.1.tgz",
        "fileCount": 256,
        "unpackedSize": 217085,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf096vCRA9TVsSAnZWagAAObsQAJfeNi3VfeJiqEVD9quz\nA/BoMA8kmgr3lmTPojSWWXEd5VYCcVMW59aC1QOU9aXn0Mk7bXmjZ//Q+cAG\nG2Zy1AT1/X6swaiSJ/fZu4RBrtyMNQpkMqj8CZQVZjoN7N81VHiUx/UFPfLB\n96mDKahGFVQLKH1tdMzLDAvoyOFQQKFHfyVobFE0CIV0ytbgTJBw2MsO4q0X\nr2AZLDjQfQOqR+h9v8IP0itHt3EXfSQFnNIgfizGS3LNkb/q6lx9PakUpRUu\nJwchWE01ESYDamNbWSSO+W9efugTCN4z+BzIhy7KEx4MoX1sX1ZvMIa3+vJR\naovKujj5uEa81vrc9CLjGpnPrDYtH/i1JtqbTg4/AKhbwBECJl5pPU0fZFY/\nNY6k2r/T/LygjXv6W07DTn8X/gqBguwVRW87fI5ItxDGX0m/7jclB1CSQwxo\n9jeYx//r9JvxeR3viHgszuNN5ee2B/+VeGs2nkCqe2B0a303HLDYgqwANREN\n67NHh02f4BfFaC0QQFWgAqwDhSqbpocSUefKyeyHDiuvJdoYygQqqkum1tRK\n2nWliyNNupH4gUg39Kz22sClAGqjdGP9rMpLfhz/RHrSzazZxjQ07GGL5CBz\nFjRYTYDWumueLrEe3J3fah811knTgtZyqV1lz3RHpNF8dDpp9QqHhVYtAkl+\nzrow\r\n=NEj0\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIDbzQ0ibvV9gc+2+AbqMrtrfwDtYnmz5RNQi5zDgXkBhAiEAzxkgCZcEWnDI6BHKksuNyybC6xvklOag4A/yANCTYDQ="
          }
        ]
      },
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.15.1_1607720622953_0.1709196631791987"
      },
      "_hasShrinkwrap": false
    },
    "0.16.0-alpha.1": {
      "name": "reakit-utils",
      "version": "0.16.0-alpha.1",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0 || ^17.0.0",
        "react-dom": "^16.8.0 || ^17.0.0"
      },
      "gitHead": "e91227c9013532e7e599f5aacfe680dd41e2538d",
      "readme": "# reakit-utils\n\n<a href=\"https://npmjs.org/package/reakit-utils\"><img alt=\"NPM version\" src=\"https://img.shields.io/npm/v/reakit-utils.svg\" /></a>\n\n> **This is experimental** and may have breaking changes in minor versions.\n\n## Installation\n\nnpm:\n\n```sh\nnpm i reakit-utils\n```\n\nYarn:\n\n```sh\nyarn add reakit-utils\n```\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n#### Table of Contents\n\n-   [canUseDOM](#canusedom)\n-   [isUA](#isua)\n-   [getDocument](#getdocument)\n-   [getWindow](#getwindow)\n-   [getActiveElement](#getactiveelement)\n-   [contains](#contains)\n-   [isButton](#isbutton)\n-   [matches](#matches)\n-   [closest](#closest)\n-   [isTextField](#istextfield)\n-   [getNativeElementType](#getnativeelementtype)\n-   [isPortalEvent](#isportalevent)\n-   [isSelfTarget](#isselftarget)\n-   [createEvent](#createevent)\n-   [fireEvent](#fireevent)\n-   [fireBlurEvent](#fireblurevent)\n-   [fireKeyboardEvent](#firekeyboardevent)\n-   [getNextActiveElementOnBlur](#getnextactiveelementonblur)\n-   [flatten](#flatten)\n-   [isFocusable](#isfocusable)\n-   [isTabbable](#istabbable)\n-   [getAllFocusableIn](#getallfocusablein)\n-   [getFirstFocusableIn](#getfirstfocusablein)\n-   [getAllTabbableIn](#getalltabbablein)\n-   [getFirstTabbableIn](#getfirsttabbablein)\n-   [getLastTabbableIn](#getlasttabbablein)\n-   [getNextTabbableIn](#getnexttabbablein)\n-   [getPreviousTabbableIn](#getprevioustabbablein)\n-   [getClosestFocusable](#getclosestfocusable)\n-   [hasFocus](#hasfocus)\n-   [hasFocusWithin](#hasfocuswithin)\n-   [ensureFocus](#ensurefocus)\n-   [useSafeLayoutEffect](#usesafelayouteffect)\n-   [useInitialValue](#useinitialvalue)\n-   [useLazyRef](#uselazyref)\n-   [useLiveRef](#useliveref)\n-   [useEventCallback](#useeventcallback)\n-   [useForkRef](#useforkref)\n-   [useNativeElementType](#usenativeelementtype)\n-   [useUpdateEffect](#useupdateeffect)\n-   [shallowEqual](#shallowequal)\n-   [toArray](#toarray)\n-   [applyState](#applystate)\n-   [isObject](#isobject)\n-   [isPlainObject](#isplainobject)\n-   [isPromise](#ispromise)\n-   [isEmpty](#isempty)\n-   [isInteger](#isinteger)\n-   [removeIndexFromArray](#removeindexfromarray)\n-   [removeItemFromArray](#removeitemfromarray)\n-   [omit](#omit)\n-   [pick](#pick)\n-   [types](#types)\n\n### canUseDOM\n\nIt's `true` if it is running in a browser environment or `false` if it is not (SSR).\n\n#### Examples\n\n```javascript\nimport { canUseDOM } from \"reakit-utils\";\n\nconst title = canUseDOM ? document.title : \"\";\n```\n\n### isUA\n\nChecks if a given string exists in the user agent string.\n\n#### Parameters\n\n-   `string` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\n### getDocument\n\nReturns `element.ownerDocument || document`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\nReturns **[Document](https://developer.mozilla.org/docs/Web/API/Document)** \n\n### getWindow\n\nReturns `element.ownerDocument.defaultView || window`.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)?** \n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n### getActiveElement\n\nReturns `element.ownerDocument.activeElement`.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) \\| [Document](https://developer.mozilla.org/docs/Web/API/Document) | null)?** \n\n### contains\n\nSimilar to `Element.prototype.contains`, but a little bit faster when\n`element` is the same as `child`.\n\n#### Parameters\n\n-   `parent` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `child` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { contains } from \"reakit-utils\";\n\ncontains(document.getElementById(\"parent\"), document.getElementById(\"child\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isButton\n\nChecks whether `element` is a native HTML button element.\n\n#### Parameters\n\n-   `element` **{tagName: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?}** \n\n#### Examples\n\n```javascript\nimport { isButton } from \"reakit-utils\";\n\nisButton(document.querySelector(\"button\")); // true\nisButton(document.querySelector(\"input[type='button']\")); // true\nisButton(document.querySelector(\"div\")); // false\nisButton(document.querySelector(\"input[type='text']\")); // false\nisButton(document.querySelector(\"div[role='button']\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### matches\n\n-   **See: <https://developer.mozilla.org/en-US/docs/Web/API/Element/matches>\n    **\n\nPonyfill for `Element.prototype.matches`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### closest\n\nPonyfill for `Element.prototype.closest`\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `selectors` **K** \n\n#### Examples\n\n```javascript\nimport { closest } from \"reakit-utils\";\n\nclosest(document.getElementById(\"id\"), \"div\");\n// same as\ndocument.getElementById(\"id\").closest(\"div\");\n```\n\nReturns **any** \n\n### isTextField\n\nCheck whether the given element is a text field, where text field is defined\nby the ability to select within the input, or that it is contenteditable.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n\n#### Examples\n\n```javascript\nimport { isTextField } from \"reakit-utils\";\n\nisTextField(document.querySelector(\"div\")); // false\nisTextField(document.querySelector(\"input\")); // true\nisTextField(document.querySelector(\"input[type='button']\")); // false\nisTextField(document.querySelector(\"textarea\")); // true\nisTextField(document.querySelector(\"div[contenteditable='true']\")); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### getNativeElementType\n\nReturns the native tag name of the passed element. If the element is not\nprovided, the second argument `defaultType` will be used, but only if it's\na string.\n\n#### Parameters\n\n-   `element` **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)?** \n-   `defaultType` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | ComponentType)?** \n\n#### Examples\n\n```javascript\nimport { getNativeElementType } from \"reakit-utils\";\n\ngetNativeElementType(document.querySelector(\"div\")); // \"div\"\ngetNativeElementType(document.querySelector(\"button\")); // \"button\"\ngetNativeElementType(null, \"button\"); // \"button\"\ngetNativeElementType(null, SomeComponent); // undefined\n```\n\n### isPortalEvent\n\nReturns `true` if `event` has been fired within a React Portal element.\n\n#### Parameters\n\n-   `event` **SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isSelfTarget\n\nReturns `true` if `event.target` and `event.currentTarget` are the same.\n\n#### Parameters\n\n-   `event` **SyntheticEvent** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### createEvent\n\nCreates an event. Supports IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit?** \n\n#### Examples\n\n```javascript\nimport { createEvent } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\ncreateEvent(element, \"blur\", { bubbles: false });\n```\n\nReturns **[Event](https://developer.mozilla.org/docs/Web/API/Event)** \n\n### fireEvent\n\nCreates and dispatches an event. Supports IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **EventInit** \n\n#### Examples\n\n```javascript\nimport { fireEvent } from \"reakit-utils\";\n\nfireEvent(document.getElementById(\"id\"), \"blur\", {\n  bubbles: true,\n  cancelable: true,\n});\n```\n\n### fireBlurEvent\n\nCreates and dispatches a blur event. Supports IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `eventInit` **FocusEventInit?** \n\n#### Examples\n\n```javascript\nimport { fireBlurEvent } from \"reakit-utils\";\n\nfireBlurEvent(document.getElementById(\"id\"));\n```\n\n### fireKeyboardEvent\n\nCreates and dispatches a keyboard event. Supports IE 11.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** \n-   `eventInit` **KeyboardEventInit** \n\n#### Examples\n\n```javascript\nimport { fireKeyboardEvent } from \"reakit-utils\";\n\nfireKeyboardEvent(document.getElementById(\"id\"), \"keydown\", {\n  key: \"ArrowDown\",\n  shiftKey: true,\n});\n```\n\n### getNextActiveElementOnBlur\n\nCross-browser method that returns the next active element (the element that\nis receiving focus) after a blur event is dispatched. It receives the blur\nevent object as the argument.\n\n#### Parameters\n\n-   `event` **(ReactFocusEvent | [FocusEvent](https://developer.mozilla.org/docs/Web/API/FocusEvent))** \n\n#### Examples\n\n```javascript\nimport { getNextActiveElementOnBlur } from \"reakit-utils\";\n\nconst element = document.getElementById(\"id\");\nelement.addEventListener(\"blur\", (event) => {\n  const nextActiveElement = getNextActiveElementOnBlur(event);\n});\n```\n\n### flatten\n\nTransforms an array with multiple levels into a flattened one.\n\n#### Parameters\n\n-   `array` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;T>** \n\n#### Examples\n\n```javascript\nimport { flatten } from \"reakit-utils\";\n\nflatten([0, 1, [2, [3, 4], 5], 6]);\n// => [0, 1, 2, 3, 4, 5, 6]\n```\n\n### isFocusable\n\nChecks whether `element` is focusable or not.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isFocusable } from \"reakit-utils\";\n\nisFocusable(document.querySelector(\"input\")); // true\nisFocusable(document.querySelector(\"input[tabindex='-1']\")); // true\nisFocusable(document.querySelector(\"input[hidden]\")); // false\nisFocusable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isTabbable\n\nChecks whether `element` is tabbable or not.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { isTabbable } from \"reakit-utils\";\n\nisTabbable(document.querySelector(\"input\")); // true\nisTabbable(document.querySelector(\"input[tabindex='-1']\")); // false\nisTabbable(document.querySelector(\"input[hidden]\")); // false\nisTabbable(document.querySelector(\"input:disabled\")); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### getAllFocusableIn\n\nReturns all the focusable elements in `container`.\n\n#### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n### getFirstFocusableIn\n\nReturns the first focusable element in `container`.\n\n#### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### getAllTabbableIn\n\nReturns all the tabbable elements in `container`, including the container\nitself.\n\n#### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return focusable elements if there are no tabbable ones.\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n\n### getFirstTabbableIn\n\nReturns the first tabbable element in `container`, including the container\nitself if it's tabbable.\n\n#### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the first focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### getLastTabbableIn\n\nReturns the last tabbable element in `container`, including the container\nitself if it's tabbable.\n\n#### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the last focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### getNextTabbableIn\n\nReturns the next tabbable element in `container`.\n\n#### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the next focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### getPreviousTabbableIn\n\nReturns the previous tabbable element in `container`.\n\n#### Parameters\n\n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n-   `fallbackToFocusable` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)?** If `true`, it'll return the previous focusable element if there are no tabbable ones.\n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### getClosestFocusable\n\nReturns the closest focusable element.\n\n#### Parameters\n\n-   `element` **(T | null)?** \n-   `container` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\nReturns **([Element](https://developer.mozilla.org/docs/Web/API/Element) | null)** \n\n### hasFocus\n\nChecks if `element` has focus. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocus } from \"reakit-utils\";\n\nhasFocus(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### hasFocusWithin\n\nChecks if `element` has focus within. Elements that are referenced by\n`aria-activedescendant` are also considered.\n\n#### Parameters\n\n-   `element` **[Element](https://developer.mozilla.org/docs/Web/API/Element)** \n\n#### Examples\n\n```javascript\nimport { hasFocusWithin } from \"reakit-utils\";\n\nhasFocusWithin(document.getElementById(\"id\"));\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### ensureFocus\n\nEnsures `element` will receive focus if it's not already.\n\n#### Parameters\n\n-   `element` **[HTMLElement](https://developer.mozilla.org/docs/Web/HTML/Element)** \n-   `$1` **EnsureFocusOptions**  (optional, default `{}`)\n    -   `$1.preventScroll`  \n    -   `$1.isActive`   (optional, default `hasFocus`)\n\n#### Examples\n\n```javascript\nimport { ensureFocus } from \"reakit-utils\";\n\nensureFocus(document.activeElement); // does nothing\n\nconst element = document.querySelector(\"input\");\n\nensureFocus(element); // focuses element\nensureFocus(element, { preventScroll: true }); // focuses element preventing scroll jump\n\nfunction isActive(el) {\n  return el.dataset.active === \"true\";\n}\n\nensureFocus(document.querySelector(\"[data-active='true']\"), { isActive }); // does nothing\n```\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** `requestAnimationFrame` call ID so it can be passed to `cancelAnimationFrame` if needed.\n\n### useSafeLayoutEffect\n\n`React.useLayoutEffect` that fallbacks to `React.useEffect` on server side.\n\n### useInitialValue\n\nReturns a value that never changes even if the argument is updated.\n\n#### Parameters\n\n-   `value` **InitialState&lt;T>** \n\n#### Examples\n\n```javascript\nimport { useInitialValue } from \"reakit-utils\";\n\nfunction Component({ prop }) {\n  const initialProp = useInitialValue(prop);\n}\n```\n\n### useLazyRef\n\nReturns a value that is lazily initiated and never changes.\n\n#### Parameters\n\n-   `init` **function (): T** \n\n#### Examples\n\n```javascript\nimport { useLazyRef } from \"reakit-utils\";\n\nfunction Component() {\n  const set = useLazyRef(() => new Set());\n}\n```\n\n### useLiveRef\n\nCreates a `React.RefObject` that is constantly updated with the incoming\nvalue.\n\n#### Parameters\n\n-   `value` **T** \n\n#### Examples\n\n```javascript\nimport { useLiveRef } from \"reakit-utils\";\n\nfunction Component({ prop }) {\n  const propRef = useLiveRef(prop);\n}\n```\n\n### useEventCallback\n\nCreates a memoized callback function that is constantly updated with the\nincoming callback.\n\n#### Parameters\n\n-   `callback` **T?** \n\n#### Examples\n\n```javascript\nimport { useEffect } from \"react\";\nimport { useEventCallback } from \"reakit-utils\";\n\nfunction Component(props) {\n  const onClick = useEventCallback(props.onClick);\n  useEffect(() => {}, [onClick]);\n}\n```\n\n### useForkRef\n\nMerges React Refs into a single memoized function ref so you can pass it to\nan element.\n\n#### Parameters\n\n-   `refs` **...[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;(Ref&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))>** \n\n#### Examples\n\n```javascript\nimport { forwardRef, useRef } from \"react\";\nimport { useForkRef } from \"reakit-utils\";\n\nconst Component = forwardRef((props, ref) => {\n  const internalRef = useRef();\n  return <div {...props} ref={useForkRef(internalRef, ref)} />;\n});\n```\n\n### useNativeElementType\n\nReturns the native tag name of an element by parsing its ref object. If the\nsecond argument `defaultType` is provided, it's going to be used by default\non the first render, before React runs the effects.\n\n#### Parameters\n\n-   `ref` **RefObject&lt;[Element](https://developer.mozilla.org/docs/Web/API/Element)>** \n-   `defaultType` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | ComponentType)?** \n\n#### Examples\n\n```javascript\nimport * as React from \"react\";\nimport { useNativeElementType } from \"reakit-utils\";\n\nfunction Component(props) {\n  const ref = React.useRef();\n  // button on the first render, div on the second render\n  const type = useNativeElementType(ref, \"button\");\n  return <div ref={ref} {...props} />;\n}\n```\n\n### useUpdateEffect\n\nA `React.useEffect` that will not run on the first render.\n\n#### Parameters\n\n-   `effect` **EffectCallback** \n-   `deps` **(ReadonlyArray&lt;any> | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))?** \n\n### shallowEqual\n\nCompares two objects.\n\n#### Parameters\n\n-   `a` **AnyObject?** \n-   `b` **AnyObject?** \n\n#### Examples\n\n```javascript\nimport { shallowEqual } from \"reakit-utils\";\n\nshallowEqual({ a: \"a\" }, {}); // false\nshallowEqual({ a: \"a\" }, { b: \"b\" }); // false\nshallowEqual({ a: \"a\" }, { a: \"a\" }); // true\nshallowEqual({ a: \"a\" }, { a: \"a\", b: \"b\" }); // false\n```\n\n### toArray\n\nTransforms `arg` into an array if it's not already.\n\n#### Parameters\n\n-   `arg` **T** \n\n#### Examples\n\n```javascript\nimport { toArray } from \"reakit-utils\";\n\ntoArray(\"a\"); // [\"a\"]\ntoArray([\"a\"]); // [\"a\"]\n```\n\n### applyState\n\nReceives a `setState` argument and calls it with `currentValue` if it's a\nfunction. Otherwise return the argument as the new value.\n\n#### Parameters\n\n-   `argument` **SetStateAction&lt;T>** \n-   `currentValue` **T** \n\n#### Examples\n\n```javascript\nimport { applyState } from \"reakit-utils\";\n\napplyState((value) => value + 1, 1); // 2\napplyState(2, 1); // 2\n```\n\n### isObject\n\nChecks whether `arg` is an object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPlainObject\n\nChecks whether `arg` is a plain object or not.\n\n#### Parameters\n\n-   `arg` **any** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isPromise\n\nChecks whether `arg` is a promise or not.\n\n#### Parameters\n\n-   `arg` **(T | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;T>)** \n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isEmpty\n\nChecks whether `arg` is empty or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isEmpty } from \"reakit-utils\";\n\nisEmpty([]); // true\nisEmpty([\"a\"]); // false\nisEmpty({}); // true\nisEmpty({ a: \"a\" }); // false\nisEmpty(); // true\nisEmpty(null); // true\nisEmpty(undefined); // true\nisEmpty(\"\"); // true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### isInteger\n\nChecks whether `arg` is an integer or not.\n\n#### Parameters\n\n-   `arg` **any** \n\n#### Examples\n\n```javascript\nimport { isInteger } from \"reakit-utils\";\n\nisInteger(1); // true\nisInteger(1.5); // false\nisInteger(\"1\"); // true\nisInteger(\"1.5\"); // false\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### removeIndexFromArray\n\nImmutably removes an index from an array.\n\n#### Parameters\n\n-   `array` **T** \n-   `index` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** \n\n#### Examples\n\n```javascript\nimport { removeIndexFromArray } from \"reakit-utils\";\n\nremoveIndexFromArray([\"a\", \"b\", \"c\"], 1); // [\"a\", \"c\"]\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the item in the passed index.\n\n### removeItemFromArray\n\nImmutably removes an item from an array.\n\n#### Parameters\n\n-   `array` **A** \n-   `item` **any** \n\n#### Examples\n\n```javascript\nimport { removeItemFromArray } from \"reakit-utils\";\n\nremoveItemFromArray([\"a\", \"b\", \"c\"], \"b\"); // [\"a\", \"c\"]\n\n// This only works by reference\nconst obj = {};\nremoveItemFromArray([obj], {}); // [obj]\nremoveItemFromArray([obj], obj); // []\n```\n\nReturns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** A new array without the passed item.\n\n### omit\n\nOmits specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { omit } from \"reakit-utils\";\n\nomit({ a: \"a\", b: \"b\" }, [\"a\"]); // { b: \"b\" }\n```\n\nReturns **Omit&lt;T, K>** \n\n### pick\n\nPicks specific keys from an object.\n\n#### Parameters\n\n-   `object` **T** \n-   `paths` **(ReadonlyArray&lt;K> | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;K>)** \n\n#### Examples\n\n```javascript\nimport { pick } from \"reakit-utils\";\n\npick({ a: \"a\", b: \"b\" }, [\"a\"]); // { a: \"a\" }\n```\n\n### types\n\n#### RenderProp\n\nRender prop type\n\nType: function (props: P): React.ReactElement&lt;any>\n\n#### As\n\n\"as\" prop\n\nType: React.ElementType&lt;P>\n\n#### HTMLAttributesWithRef\n\nType: any\n\n#### ExtractHTMLAttributes\n\nReturns only the HTML attributes inside P\n\n```ts\ntype OnlyId = ExtractHTMLAttributes<{ id: string; foo: string }>;\ntype HTMLAttributes = ExtractHTMLAttributes<any>;\n```\n\nType: Pick&lt;HTMLAttributesWithRef, Extract&lt;any, any>>\n\n#### UnionToIntersection\n\nTransforms `\"a\" | \"b\"` into `\"a\" & \"b\"`\n\nType: any\n\n#### PropsWithAs\n\nGeneric component props with \"as\" prop\n\nType: any\n\n#### ArrayValue\n\nReturns the type of the items in an array\n\nType: any\n\n#### AnyFunction\n\nAny function\n\nType: function (...args: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;any>): any\n\n#### AnyObject\n\nAny object\n\nType: Record&lt;any, any>\n\n#### SetState\n\nState hook setter.\n\nType: React.Dispatch&lt;React.SetStateAction&lt;T>>\n\n#### InitialState\n\nInitial state.\n\nType: (T | function (): T)\n\n## License\n\nMIT © [Diego Haz](https://github.com/diegohaz)\n",
      "readmeFilename": "README.md",
      "_id": "reakit-utils@0.16.0-alpha.1",
      "_nodeVersion": "14.16.1",
      "_npmVersion": "lerna/3.22.1/node@v14.16.1+x64 (darwin)",
      "dist": {
        "integrity": "sha512-2tN/Gw8ZsZSwJ0gbF1+HP9fdvIvP+vH67s93ngv/Vu5xLTooW0CbxeT6PqcKcNOfjIEaikFDoYSpP9WOR1tvlw==",
        "shasum": "b665e7dc57ec954429eb2df6cecebcf98026da61",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.16.0-alpha.1.tgz",
        "fileCount": 54,
        "unpackedSize": 184483,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghULvCRA9TVsSAnZWagAA6mkP/0hDMQGGT+W6oc9rtUY3\n5l6qMMim0b3TB95z6lDyROfCzmvLF/7Pj7N66iaHnZImTVFlht4j39rLCZSO\ny00zZdyVtEbgmS6AeXnWgWoRXUh+HketSyk7StC/GF9IdZa7llwrABGxaFBX\n1PfSpHGWM27N8/tBzYxm+lBNs8OJcDNDi5xWQGu56aypVwQSdqkvxgwjbjDl\nao2Lr2TDUCgf5PVWIwiqWxOhgvVYzhODHc/N9BUBDTv9ueeeMVe7k4oBf4Tq\ne/KwWH07YAHwFiRgnKITs59hoTQXLDs1asU28Ocicd/REj4CTosKT8eMEqHq\nJ3w2y6CM6OFHj5YaI7h4uml3lmL01cRXDQRrqznVTJsnkeeZ/Y55JhzTZyeC\niZ9mkuxZE6TUoreaGvq+zI12rGa1i7COKYzUgjzCCAQHQmOZitfEWhgDKeb0\n+cKZX+vqg4ONwBme/4NVlfCgNGuv/hMznBtosq5sfKIlFAWlhdWPqUlL6Zjx\nldqQxWHiUyifpmhAod1V1+dWjvaOuKVKnQpm5KvhAdiru4wRk4toFngMfMxd\nMUKrBBY1HiZNnCCNYQbzdt0gIQQ66SpCXezoL9CWA5O3gpKOYy2AQ+y1mwbK\nL0ua8KDaXoevj5HYTCUUSnjv2Br3bWv32MKeG6bYnvpDL2avIE4DgU+1F1s+\nWx/x\r\n=Quvd\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDvOhGX0RDiUShgIHOduDd5/HHQWiuJobhvkimn4tTlNwIhAKCWjV/D157sWZKS2Wi23Pbj4RVV4MzHvjZ/Eq8+ezKj"
          }
        ]
      },
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.16.0-alpha.1_1619346158980_0.5483087995573739"
      },
      "_hasShrinkwrap": false
    },
    "0.15.2": {
      "name": "reakit-utils",
      "version": "0.15.2",
      "description": "Reakit utils",
      "sideEffects": false,
      "license": "MIT",
      "repository": {
        "type": "git",
        "url": "https://github.com/reakit/reakit/tree/master/packages/reakit-utils"
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "unpkg": "dist/reakit-utils.min.js",
      "types": "ts",
      "author": {
        "name": "Diego Haz",
        "email": "hazdiego@gmail.com",
        "url": "https://github.com/diegohaz"
      },
      "scripts": {
        "test": "jest",
        "coverage": "yarn test --coverage",
        "postcoverage": "open-cli coverage/lcov-report/index.html",
        "lint": "eslint . --ext js,ts,tsx",
        "clean": "node ../../scripts/build/clean.js",
        "build": "node ../../scripts/build/build.js",
        "docs": "documentation readme src --markdown-toc-max-depth=2 --section=API --parse-extension ts",
        "preversion": "yarn lint && yarn test && yarn docs && yarn build",
        "postpublish": "yarn clean"
      },
      "keywords": [
        "reakit",
        "react",
        "utils"
      ],
      "peerDependencies": {
        "react": "^16.8.0 || ^17.0.0",
        "react-dom": "^16.8.0 || ^17.0.0"
      },
      "gitHead": "e30e656b303f014fb841893c003aac2a5a5ac6fa",
      "_id": "reakit-utils@0.15.2",
      "_nodeVersion": "14.16.1",
      "_npmVersion": "lerna/3.22.1/node@v14.16.1+x64 (darwin)",
      "dist": {
        "integrity": "sha512-i/RYkq+W6hvfFmXw5QW7zvfJJT/K8a4qZ0hjA79T61JAFPGt23DsfxwyBbyK91GZrJ9HMrXFVXWMovsKBc1qEQ==",
        "shasum": "b4d5836e534576bfd175171541d43182ad97f2d2",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/reakit-utils/-/reakit-utils-0.15.2.tgz",
        "fileCount": 256,
        "unpackedSize": 217287,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNW1kCRA9TVsSAnZWagAAdkgP/11XVHbktjQnhCS+KFx0\nrQHSNnGBEGTSaacgeD3lRNihXCqbS2fHWLQZhRj385+/FqSNBwBa0O0hQrbj\nVVAbs7p6lqhdm4PnpFkec/biPbRxsNsT/0nbnEJ8wsXtrQCu7bkwd/sFB+ES\ncov3zoGOjxvySB2SWrVszXNoPxtk1NNeRnBaTpODqDaaFYIxT3Q3SGrwvvLi\nAQcqNP0me3mORNH6mMFItoJikz9TBCasEKOAXO+tlG6xeW5RJ9lI/soIsmT6\nlUYfT8k1KgtPAz2h3VAg7V6WPmZ//Vw5WtwgM4/SDxjWXIRNoU3vstvzs1KC\ni7F75isnoul3VAuHTRLpWnszt7si04HlKHkEQAKAm19jin0a79GcCvE6/CmO\nDj1mbrl4XwS+l8ALmom1WsAxDT1DOLVftjf294RS3mFByuBV8a8LqKZ7fQLw\nfCn7WKjmR+R9jSXhKk/6BiP2MZPjOdOmgB5Ye4PdH9PEpSgThwGAtlIDsDB7\nLuqfrVe6lLbI7xB15NniTCdICvEilewnxpA3mIuPDuq7i6lz8kwETFBnqaw4\n28KKvviI4rKFDxGDwBW0z3g2AiQ41m2/QyFf/tNitoKoXk2W1CZXx3LpNnUV\nhSOFdzcl47QsxgGTpw+Uc0lsQwFxAeTMeZm0jLsBvyvFCdEvvpaaCLg+Pgs4\nQj21\r\n=FhOb\r\n-----END PGP SIGNATURE-----\r\n",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCWjVm2HnmjYJ968oplMoZ2kHHHAuDscy+X+aPWJHtk3QIhAMo3MpMvdF8JxtbZqp7viS9rZJagzyoaiMi80FVmQOxB"
          }
        ]
      },
      "_npmUser": {
        "name": "diegohaz",
        "email": "hazdiego@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "diegohaz",
          "email": "hazdiego@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/reakit-utils_0.15.2_1630891364612_0.5983179681341533"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "reakit-utils",
  "time": {
    "created": "2019-06-09T21:34:33.355Z",
    "0.0.1": "2019-06-09T21:34:33.479Z",
    "modified": "2026-07-19T15:12:58.362Z",
    "0.6.1": "2019-06-23T03:17:35.236Z",
    "0.6.2": "2019-06-27T08:39:53.455Z",
    "0.6.3": "2019-08-25T23:24:20.919Z",
    "0.6.4": "2019-09-19T18:29:46.504Z",
    "0.6.5": "2019-09-25T22:01:29.154Z",
    "0.6.6": "2019-10-12T04:56:45.798Z",
    "0.6.7": "2019-11-02T05:50:11.108Z",
    "0.7.0": "2019-11-08T01:33:10.350Z",
    "0.7.1": "2019-11-14T19:08:45.213Z",
    "0.7.2": "2019-11-22T17:36:54.897Z",
    "0.7.3": "2019-12-18T23:35:47.351Z",
    "0.8.0": "2020-02-05T05:20:27.377Z",
    "0.9.0": "2020-02-10T01:38:33.576Z",
    "0.10.0": "2020-03-30T07:19:15.944Z",
    "0.11.0": "2020-04-20T05:10:33.256Z",
    "0.12.0": "2020-04-29T10:15:27.407Z",
    "0.12.1": "2020-06-04T02:36:53.526Z",
    "0.13.0-alpha.0": "2020-06-04T03:26:55.486Z",
    "0.13.0": "2020-06-17T11:48:28.888Z",
    "0.13.1": "2020-07-18T11:05:42.049Z",
    "0.14.0-alpha.0": "2020-07-20T06:55:24.243Z",
    "0.14.0-alpha.1": "2020-08-06T19:20:21.938Z",
    "0.14.0": "2020-08-06T19:29:01.822Z",
    "0.14.1": "2020-08-13T04:37:50.003Z",
    "0.14.2": "2020-08-17T04:44:16.988Z",
    "0.14.3": "2020-08-24T21:03:11.969Z",
    "0.15.0-alpha.0": "2020-09-03T02:38:14.791Z",
    "0.15.0-alpha.1": "2020-09-05T22:15:04.256Z",
    "0.15.0-alpha.2": "2020-09-06T02:15:10.231Z",
    "0.14.4": "2020-09-22T23:09:47.131Z",
    "0.15.0-alpha.3": "2020-09-22T23:20:08.673Z",
    "0.15.0-alpha.4": "2020-10-24T03:48:20.033Z",
    "0.15.0": "2020-11-12T13:32:19.002Z",
    "0.15.1": "2020-12-11T21:03:43.140Z",
    "0.16.0-alpha.1": "2021-04-25T10:22:39.169Z",
    "0.15.2": "2021-09-06T01:22:44.775Z"
  },
  "readmeFilename": "README.md"
}