{"_id":"cycled","_rev":"8-16ea0b434ea1564d1632765faed0606d","name":"cycled","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"cycled","version":"0.1.0","description":"Cycle through the items of an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/cycled.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["cycle","cycled","iterable","iterables","array","item","next","previous","loop","repeat","value","values","iterator"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"af25fe20bc9e97ad9b52b792e89043efc9675835","bugs":{"url":"https://github.com/sindresorhus/cycled/issues"},"homepage":"https://github.com/sindresorhus/cycled#readme","_id":"cycled@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-FrtUWYVUjF6irekmqfyq4WP4DR/j3GegXCj4jx4vRyl7IWwbtEgInDqwXOiDM15uPPJk5rOSkPToXBpCirN1ig==","shasum":"9d65bfcb34b386dfe951ff3e56a9b3fc2b028c79","tarball":"https://registry.npmjs.org/cycled/-/cycled-0.1.0.tgz","fileCount":4,"unpackedSize":4004,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAskWNsC7bMyIbODhoOiMjPk0EbLk31DU1zooDkPXWx7AiApwEzBCK88Qsr75iK5u3Yg6QKC7eXhFCs5yfBHFC5q8Q=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cycled_0.1.0_1522231966234_0.4337834544760244"},"_hasShrinkwrap":false},"0.1.1":{"name":"cycled","version":"0.1.1","description":"Cycle through the items of an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/cycled.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["cycle","cycled","iterable","iterables","array","item","next","previous","loop","repeat","value","values","iterator"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"7108e1b6c1e24633fd7c0ac290a4af56b1d93ab3","bugs":{"url":"https://github.com/sindresorhus/cycled/issues"},"homepage":"https://github.com/sindresorhus/cycled#readme","_id":"cycled@0.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-jXDlqzTlEqMa5VJfGmtGYQywgLbPSpZxx8T3IqnPfR3fillpN+083e0TcSuoAOJt0I0oWl4iaea+XAkYNKmauw==","shasum":"9401c81698be285d2b0c102b250bc123d11369e5","tarball":"https://registry.npmjs.org/cycled/-/cycled-0.1.1.tgz","fileCount":4,"unpackedSize":4018,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIe+mjyLyEURdoctSk3uO74zu53iguWF+mMpDQBuA1/wIgcUdu32up85m+dvUVMk7YEXshN64xtNx7cLFubq8jrPE="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cycled_0.1.1_1522296988890_0.9736557142405271"},"_hasShrinkwrap":false},"0.2.0":{"name":"cycled","version":"0.2.0","description":"Cycle through the items of an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/cycled.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["cycle","cycled","iterable","iterables","array","item","next","previous","loop","repeat","value","values","iterator"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"20d263ffa0af2b209affc0faff3d07663c6b9e4f","bugs":{"url":"https://github.com/sindresorhus/cycled/issues"},"homepage":"https://github.com/sindresorhus/cycled#readme","_id":"cycled@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-KMQUrxn/lNb9GzjvRNc7ttms2KkVoDx/HBgorCX1a/wJ/7eBdLQAn1OXjT/CR7cJn3KzT6oYvhPodL0xMqbP1g==","shasum":"ebebe771990a60f62ad0040e88c6c1e422b97dde","tarball":"https://registry.npmjs.org/cycled/-/cycled-0.2.0.tgz","fileCount":4,"unpackedSize":3956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFz4cutvL7QL9ZabfDMB2EIYqUXbASmg1f48iQ5iZ5ZbAiEA6OVvFaqYcWNCItwbGYAlJ29pNYVOkWo//gOOnmSjj+w="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cycled_0.2.0_1522318976742_0.5206662601475922"},"_hasShrinkwrap":false},"1.0.0":{"name":"cycled","version":"1.0.0","description":"Cycle through the items of an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/cycled.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["cycle","cycled","iterable","iterables","array","item","next","previous","loop","repeat","value","values","iterator"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"e595875f890101af12ef139921b11efeb54a1cea","bugs":{"url":"https://github.com/sindresorhus/cycled/issues"},"homepage":"https://github.com/sindresorhus/cycled#readme","_id":"cycled@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"10.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-DrgKSG2iWOBCTopsunmq19Bx9im5B6mlcyOxDaVAsYXR1tMzK2zoTclLy4Nq0qkRxcDtXJnugDI+gqbBBHkhWQ==","shasum":"f6559613cb634c3605b16aff58aa2d5f74e5ea5b","tarball":"https://registry.npmjs.org/cycled/-/cycled-1.0.0.tgz","fileCount":4,"unpackedSize":4981,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbCm3jCRA9TVsSAnZWagAAL1MP/2OOcWCOuW4oiE6iNZ8u\nkanIOl4bMVN0bYsZD+BTSyiUpv3t0esYwON31xQPIYh6m7u0/qeXPC2p/daJ\n53FImqQ24H+JFpgI+Ld9VMy64sLIJqlQm5nGPwIuer5WkgQamoDyS5+x/R80\nvxPTVI+n8tyT3DJvp6WvXQWuuEbSDFyuuRwlKR/giVc0sK3Xv/QE213dULoi\n6/7nx3FwympD64/on4nWULMOzHDAn7kC55c8GetuvuIbcpOJ9EgCVm+PNHIc\np2GgLeGCWCuv2zpM94bHoU3drQt+MGp2/da/nYOVQZuQojvmi0XpSbRtgueg\nUR/tlQSw4WsV9EBHY74j8vbcQRS7t0BiLSSbJh8hGY7EgC7XQz30IyMhsN6g\ncYfj4Y+vkWEkf++e4Yn9K7GTn6h1xJm2IuOMQnOHporpuYto1A9lDony6RWp\nmk1WPjY6y5VLMkbL7sdRRap2ye65K/LOuPLR1PRohrX1clNf5FFW3JnO/fI9\noS7rqrdiVvW2bK3kApjXFxv+Fc7CgkRhrnLw0d7egtBDLiPhnkDlpSFP5SO2\nd4kZIESI6aKzKnEK/JkzjVFfRziTM5XIC+uOAVhXWBDcjpekekQ6IrubbFgw\n2u7WZJThpH10lElpoU2OCreVkT5HlP0Snl+wm3qFwlI2ucN4VZexJ6bB848l\noB6A\r\n=GR9g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqcFLBYPKBL8SBzz4x473HEVxd7beTG80Hwtp42dlaMQIgPYUNJlxCboOwKoaIOMACWtRL3MH8eXdKMEUJ8Y8eFaY="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cycled_1.0.0_1527410146704_0.9346515317249244"},"_hasShrinkwrap":false},"1.1.0":{"name":"cycled","version":"1.1.0","description":"Cycle through the items of an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/cycled.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["cycle","cycled","iterable","iterables","array","item","next","previous","loop","repeat","value","values","iterator"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"74cda09ca861b7246e220db76eaf526e58423ab6","bugs":{"url":"https://github.com/sindresorhus/cycled/issues"},"homepage":"https://github.com/sindresorhus/cycled#readme","_id":"cycled@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-k4u9jjMBg7fvkoHFhELx7ozlXGJKC+xEslpe6xdO7cQr2gzduwz6cLm4iK7lSiu3X2sBNYjIS6JdLOhHOt6Qrg==","shasum":"b74038abe28b4ae2342ee23a87ace9ea75300cf7","tarball":"https://registry.npmjs.org/cycled/-/cycled-1.1.0.tgz","fileCount":5,"unpackedSize":6799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcrPYjCRA9TVsSAnZWagAAcv4QAIj9C85lfjj0HbHlCDwt\n9IpLs5VZMdzpXYKFOwFkMpNpZHRTvyw4DGR8XejMxyDqMoFJLKDzypIxXpys\nkRM/d0hExYqijxOr1ZjB9SsV4PCwQnAwJYBvbb9MfYQu+crT0GAMTggHTpDw\nAIS99nLvU9QZCuOnmNA/NtiTyhG7VI/cDpTmHN3JMs2jjWR1rgk8LIK3RXTI\nmW/T7XdVPFfVqY9n9CnZ1SmSn+zUnV025phi0kSI60f3UJSntfSJD89Hs7MQ\nt09ZgtaunoqTbeBpAw0DWXUclP4UHHlODMDxf18/PgPHSSl0IisK9trSn9Eg\nIWg/pvKkkTLRDHgEExkDiuvNBuctFpBajWBPfSfVGTfEQuG6l29xfFv0MXrj\njgZFKUANpVm3t1fsySCjwswK6RwDTKQ34ih3ZY5JwRoryCm/Mw0n0mE8SjDv\nwn6jRpZR5h1e9Yc4jzmtS03zFTtIkGPLYeAK7+lbP1tsSkErNYbhEIs9n+lh\nH16nywcwgNgvocIwFE4RIiEKpsNRosX7wjgDu+4V40arovR9FcgxOA716nu9\nyYLqpPjlpa+R6FaaSffHNee8E8pgPmqY9RHGC35NJ+MqwN9bcvJFWBezWsXN\nqrBgQKyzTqGvmm/V/iitowIj5ru8YLC9SRHfrD/bWa5e9bHSkUimS6KFqnH/\nnHiz\r\n=L+ha\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFO9SDjHMS/Kds2FQWdI1B5JFV1a+6cb3DOcC0rcreK2AiEAvIvxD6ghVB4oluJlFA5y+lCJTBRT7V+V6/4pf/YtZ0A="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cycled_1.1.0_1554839075195_0.7007555362005888"},"_hasShrinkwrap":false},"1.2.0":{"name":"cycled","version":"1.2.0","description":"Cycle through the items of an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/cycled.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["cycle","cycled","iterable","iterables","array","item","next","previous","loop","repeat","value","values","iterator"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"997bdbd7c163be8682846686c4802943e9833e74","bugs":{"url":"https://github.com/sindresorhus/cycled/issues"},"homepage":"https://github.com/sindresorhus/cycled#readme","_id":"cycled@1.2.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-/BOOCEohSBflVHHtY/wUc1F6YDYPqyVs/A837gDoq4H1pm72nU/yChyGt91V4ML+MbbAmHs8uo2l1yJkkTIUdg==","shasum":"dde6d9d58b0b14d02c8138c8f55be416a6595baf","tarball":"https://registry.npmjs.org/cycled/-/cycled-1.2.0.tgz","fileCount":5,"unpackedSize":7406,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEYqwCRA9TVsSAnZWagAAw+8P/RVD9TCiB8BXEiL85lWX\n1O0nQSuwD1LcMYVycGR3/iw62DY2uYgeTeJ3TcNkl3fBF0p9d9RH470brd8T\nefRLKk7xNLxsM1tfASjpNOPKL8EgZSiDlAW+POm6DE/TMYFH3KenvXIKXZMQ\nd1e8hAsKoj9RW2L4RBofpzYOwVCRvpqcG0GKSxkAQsIT3AvOAHlSHygzS1A4\ns6c7hEoFZ3mlD6IyXkfUUKXY0pBHioesHqKuOhVlO9pE4to4LMzEY8IU3T3y\nw4sPZ6PZ8bj+lSlkJQxkFxJie+781m3iEW1AeoU+io7Rh5NyU8UsmBN9cSPB\n79R5ROF4YmMvDFwTRoLJ0wx2E7eWNGndHHdKWR+bX3rUuHRYW8wSV8cFipuS\nnMJ8UvHU4AoaLCp3VL9rXk7OqnnQWY8j/3YsTsJRrn1oz2UGSbWhtlHhVu28\nrE3mwF8uR2spEPD7U6f8CrITv1vqAE+xOKkc3NLRbO+y24urEdog4cqPuxDj\nnj3yIXDTdKyT/bi0JPShznUIk75YoR9U6nr5NSIvcn3wvtbIuEAbYzUN7YpD\n3gjVpqERZQi/rjAuITS26QrAWmEzQdDEXcTQf3uNpStYOspP3NxnocGya2+O\nUkSuqIjRK+h4svRyFRbbmf+a8MAF9GdSfgIqcI1F70enlvJw+dloUsqzxkwq\nxWwm\r\n=Oa4t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSfaO/a9g4oaokPrrbFAT+ReGSfIOdtaAzXymYi0PZpAiAyT/VlbKUYg11zmOV+zD7HtSMJF6vq9rlSaqmSR2UlrQ=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cycled_1.2.0_1594985136048_0.28044967686708233"},"_hasShrinkwrap":false},"2.0.0":{"name":"cycled","version":"2.0.0","description":"Cycle through the items of an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/cycled.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"//test":"xo && ava && tsd","test":"ava && tsd"},"keywords":["cycle","cycled","iterable","iterables","array","item","next","previous","loop","repeat","value","values","iterator"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"f32f521e9f23f246261aa293b07724155eb3360c","bugs":{"url":"https://github.com/sindresorhus/cycled/issues"},"homepage":"https://github.com/sindresorhus/cycled#readme","_id":"cycled@2.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Gje2igZgdUrS5ypLA7Mhi63MOgDBlCQ/2hB0/lLhcEwa8ESIHcNFARalnuoG9u9IRf0YVvIhWVjcpIG08tu/2Q==","shasum":"6b67ff948eab5c3667dfe9f99797e2a8a857cb1e","tarball":"https://registry.npmjs.org/cycled/-/cycled-2.0.0.tgz","fileCount":5,"unpackedSize":7394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbfq1CRA9TVsSAnZWagAA7VEP/i2RVkc/qfjfyUDhjRmL\nPKBKDibSmMSoPjLqUd4zsA0eEp2fIGd8h6o2Pq96gxEdZ8dTCs7KE4KOWeJE\nL3xSYDFbjasaUDXC69o9+D1YuJsYquOx6gWk/Fu66yuVXt3xpXqhXBUEF+RJ\noab20HYslJu4asmqiIpd8YHTh3Ty4yafGS5935YXKqVdfOBe3VJ0wIUKMpqD\np5jK+csd+nAnKM5CPQhvNcxZV9cUT6UTPthcBEhpmn7LTvJLN/YiQdLYnAiF\nR3zf8qnk/ePyXAm7WRxLPz+4ky5x6lNjbv0WKmCyE2dlax9ae5Eo6xxXjN7P\nzoLDmJAcgNgXPJRa88tzuuFkDf6z19wumJ7jQuFvhNsNr4wIK59hmz5dOY1n\n7etq/doDcWko9Ko1oN+8VxJQNURYD5NXHJD9HVWLi4nAbEKxFGQdDjM69not\nfogix74/5CnNJ+E4FvzKRd8HDVi3JCXta5XY5IK4ugSi8jhYf8BElVyRMPKO\nhbAvBqznQz0cqhItL4LM/bB3OqpK/YR+bA865XQuw17A1t+DpgBZSy5y169i\n3zBaDz2dEBVpVvvZtdT6LJjik8qnlD24QMwqb8kHhe+HkpNxZ3SM0deUh3OU\nPVCeZMltDeGW5pj7sdWx0f5Ca5FCMG+KwZgFEF1OSHzriEit/+0t9sWSFiib\nK/Co\r\n=xO7d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHgG0p7tKDpI3G2Nmo1uT/UUJlMHesOdNjNff6O4CTWoAiB//sYCGLnQ3cgb9ltWz/7gJ6Ld/ZgsOrQGC71HtiHSFw=="}]},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cycled_2.0.0_1617820340767_0.6551534485705253"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-28T10:12:46.234Z","0.1.0":"2018-03-28T10:12:46.318Z","modified":"2022-04-28T02:25:00.780Z","0.1.1":"2018-03-29T04:16:28.946Z","0.2.0":"2018-03-29T10:22:56.822Z","1.0.0":"2018-05-27T08:35:46.751Z","1.1.0":"2019-04-09T19:44:35.345Z","1.2.0":"2020-07-17T11:25:36.243Z","2.0.0":"2021-04-07T18:32:20.961Z"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"description":"Cycle through the items of an array","homepage":"https://github.com/sindresorhus/cycled#readme","keywords":["cycle","cycled","iterable","iterables","array","item","next","previous","loop","repeat","value","values","iterator"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/cycled.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/cycled/issues"},"license":"MIT","readme":"# cycled\n\n> Cycle through the items of an array\n\nThis package can be useful for cycling through tabs, images of slideshows, etc.\n\n## Install\n\n```\n$ npm install cycled\n```\n\n## Usage\n\n```js\nimport Cycled from 'cycled';\n\nconst cycled = new Cycled([1, 2, 3]);\n\ncycled.current();\n//=> 1\n\ncycled.next();\n//=> 2\n\ncycled.next();\n//=> 3\n\ncycled.next();\n//=> 1\n\ncycled.previous();\n//=> 3\n```\n\n## API\n\n### `cycled = new Cycled(array)`\n\nInitiates an array subclass with the methods documented below. Since it's an array, you can use all the normal array methods on it.\n\n#### array\n\nType: `Array`\n\nThe array to wrap.\n\n### cycled\n\nThe instance is an iterable that will cycle through the array. It will cycle through the number of elements equaling the length of the array from the current index.\n\n```js\nimport Cycled from 'cycled';\n\nconst numberCycle = new Cycled([1, 2, 3, 4, 5]);\n\nconsole.log(...numberCycle);\n//=> 1 2 3 4 5\n```\n\n#### current()\n\nReturns the current item.\n\n#### next()\n\nReturns the next item.\n\n#### previous()\n\nReturns the previous item.\n\n#### step(steps)\n\nReturns the item by going the given amount of `steps` through the array. For example, calling `step(2)` is like calling `next()` twice. You go backward by specifying a negative number.\n\n#### peek(steps)\n\nReturns the item that is located in the given amount of `steps` through the array. For example, calling `peek(2)` would get the item 2 items after the current one. You go backward by specifying a negative number.\n\nThis method is similar to `.step()` but without changing the current item.\n\n#### index\n\nGet or set the current index.\n\n#### indefinitely()\n\nReturns an iterable that will cycle through the array indefinitely.\n\n#### indefinitelyReversed()\n\nReturns an iterable that will cycle through the array backward indefinitely.\n\n## Example\n\nHere we create a simple tab component that can have the active view set or go forward/backward through the tabs.\n\n```js\nimport Cycled from 'cycled';\n\nclass TabComponent {\n\t#activeView;\n\t#views;\n\n\tconstructor(views) {\n\t\tthis.#activeView = views[0];\n\t\tthis.#views = new Cycled(views);\n\t}\n\n\tsetActiveView(view) {\n\t\tthis.#activeView = view;\n\t\tthis.#views.index = this.views.indexOf(view);\n\t}\n\n\tnextView() {\n\t\tsetActiveView(this.#views.next());\n\t}\n\n\tpreviousView() {\n\t\tsetActiveView(this.#views.previous());\n\t}\n}\n\nconst tabs = new TabComponent([\n\t'Homepage',\n\t'Blog',\n\t'Projects',\n\t'Contact'\n]);\n\n// …\n\nnextButton.addEventListener('click', () => {\n\ttabs.nextView();\n});\n```\n","readmeFilename":"readme.md"}