{"_id":"common-sequence","_rev":"12-260e655dee01d9f72182e2f441fca732","name":"common-sequence","dist-tags":{"latest":"3.0.0"},"versions":{"0.0.0":{"name":"common-sequence","version":"0.0.0","keywords":[],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"common-sequence@0.0.0","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/common-sequence#readme","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"dist":{"shasum":"be36fca5cc4874ec238ab8b939ac03cd1f97b632","tarball":"https://registry.npmjs.org/common-sequence/-/common-sequence-0.0.0.tgz","integrity":"sha512-lrZ6TzIqxkqMbIHk7rCqoysZlVr6WW/FmJCMc+Pmmjhr8HKFz4xd15fksbAOMNcqAfi2EE6I6XZ6uaihazeBVw==","signatures":[{"sig":"MEQCIEdyihI8WVjZsszi2YHwOeR3gPnOt6+wL4KJdAmVm8lJAiBJRX/VA6Znh4j7gRUAJ8eaMF8rsxAb1k2l08HeqUydrw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/common-sequence.js","_from":".","_shasum":"be36fca5cc4874ec238ab8b939ac03cd1f97b632","engines":{"node":">=0.10.0"},"gitHead":"8e40345374c37993fe5904e765ca5f519a08e8d2","scripts":{"docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","lint":"jshint lib/*.js bin/*.js test/*.js; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/common-sequence.git","type":"git"},"_npmVersion":"2.10.1","description":"common-sequence","directories":{},"_nodeVersion":"0.12.4","devDependencies":{"tape":"^4.0.0","jsdoc-to-markdown":"^1.1.1"}},"1.0.0":{"name":"common-sequence","version":"1.0.0","keywords":[],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"common-sequence@1.0.0","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/common-sequence#readme","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"dist":{"shasum":"782c66b86e788a2e89301bfd90a51a350474a7a1","tarball":"https://registry.npmjs.org/common-sequence/-/common-sequence-1.0.0.tgz","integrity":"sha512-WmFqtKL+iVqn1dH5CWXJbnSNGhYqkCgkm8GQ15E7kVryFWsl9pMDdLClM4hkS/rrJPHXr1OIXcCUm7vP4d5M8w==","signatures":[{"sig":"MEUCIFRL+BNd5m0IOzZ/GeKlyI7MQ0aH0sghC6usL9PUbttxAiEAtnLJpmGu1JoGdkuYkm+QpOMokB4yhNP879KE7mfdK20=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/common-sequence.js","_from":".","_shasum":"782c66b86e788a2e89301bfd90a51a350474a7a1","engines":{"node":">=0.10.0"},"gitHead":"d14e02bc154444c9af78b6223438d85ce0e4f306","scripts":{"docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","lint":"jshint lib/*.js bin/*.js test/*.js; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/common-sequence.git","type":"git"},"_npmVersion":"2.10.1","description":"common-sequence","directories":{},"_nodeVersion":"0.12.4","devDependencies":{"tape":"^4.0.0","jsdoc-to-markdown":"^1.1.1"}},"1.0.1":{"name":"common-sequence","version":"1.0.1","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"common-sequence@1.0.1","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/common-sequence#readme","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"dist":{"shasum":"2ea04175c819a8084699638f75bbd4de8a396fec","tarball":"https://registry.npmjs.org/common-sequence/-/common-sequence-1.0.1.tgz","integrity":"sha512-pRGkQmbbcu00CoJxR54u+YblFXcF3Bb6BBRfw5I31FAT3J+wA5ZIa97ieBgBngJ01rAsTjET6M3nWJbPV/fo2g==","signatures":[{"sig":"MEUCIQCPxLQjLr2DbDdXtHfwHgm67a/tmcH7ZrW2Wn4xDatFkwIgI7JAictVWlRXN3Lz7L8Dhh/N8DDvzIZxShx0eTu7qms=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/common-sequence.js","_from":".","_shasum":"2ea04175c819a8084699638f75bbd4de8a396fec","engines":{"node":">=0.10.0"},"gitHead":"7a20e064663bc02aff788000f81eb60414172bce","scripts":{"docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","lint":"jshint lib/*.js bin/*.js test/*.js; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/common-sequence.git","type":"git"},"_npmVersion":"2.10.1","description":"common-sequence","directories":{},"_nodeVersion":"0.12.4","devDependencies":{"tape":"^4.0.0","jsdoc-to-markdown":"^1.1.1"}},"1.0.2":{"name":"common-sequence","version":"1.0.2","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"common-sequence@1.0.2","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/common-sequence#readme","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"dist":{"shasum":"30e07f3f8f6f7f9b3dee854f20b2d39eee086de8","tarball":"https://registry.npmjs.org/common-sequence/-/common-sequence-1.0.2.tgz","integrity":"sha512-z3ln8PqfoBRwY1X0B1W0NEvfuo3+lZdvVjYaxusK84FPGkBy+ZqfbMhgdGOLr1v1dv13z5KYOtbL/yupL4I8Yw==","signatures":[{"sig":"MEQCIDTJpx2JRFAC4CJe6+tUmuojoCrfevLYotJVdLCAPHB8AiBODXpDv0sGuZwdBeLTVNTCmtfusqAhdgKqVVLMRd/amw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib/common-sequence.js","_from":".","_shasum":"30e07f3f8f6f7f9b3dee854f20b2d39eee086de8","engines":{"node":">=0.10.0"},"gitHead":"bdfd45b1358fd8fc8f90c90dde9960cc9555fb01","scripts":{"docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo","lint":"jshint lib/*.js bin/*.js test/*.js; echo","test":"tape test/*.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/common-sequence.git","type":"git"},"_npmVersion":"2.10.1","description":"Returns an array containing the initial elements which both input arrays have in common","directories":{},"_nodeVersion":"0.12.4","devDependencies":{"tape":"^4.0.0","jsdoc-to-markdown":"^1.1.1"}},"2.0.0":{"name":"common-sequence","version":"2.0.0","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"common-sequence@2.0.0","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/common-sequence#readme","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"dist":{"shasum":"a4f01aaf5aebd0ac1ce43653e8c8fe6f0ef3a987","tarball":"https://registry.npmjs.org/common-sequence/-/common-sequence-2.0.0.tgz","fileCount":6,"integrity":"sha512-f0QqPLpRTgMQn/pQIynf+SdE73Lw5Q1jn4hjirHLgH/NJ71TiHjXusV16BmOyuK5rRQ1W2f++II+TFZbQOh4hA==","signatures":[{"sig":"MEQCIGM4PNpOPi9OizXl2iWF/bCbcKnDXQ8Qfou5p+xyjGl0AiAbdps5L9toaIi+E2wlsUg5SA++u5zmjqgvlU9a2XQKfQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdj7Q0CRA9TVsSAnZWagAA+gYQAIOsrQGfIWgufvB3snaq\nF/CrobhWXP3oYLRQW02qj+IMm0PV1vv76oZ/s4iKInS2hgx00Bxu7Rr0RPgX\nKOlTwtX7qLxfExWjTxS9cJmuMobRjx5lQpvnpZyOm6B/BDuNTvuDTD0laIsg\nJmBfCGXaMlHnVxc1Fx83Cp79z5j3wg3c0Jgy9KXV3WJT6H0HwH2vGNhE8eo6\nX6KiPDdPXcNrqFzfCf9RIfdPDvoz3hwqBDwzE37VsuxrmkC9W3+Z4JZ5LiX/\nk+MKMirQ4LXKJMxgBHyAssywdVAfcKzltM8ZXkIbIz0T/2frw0GVgLcfLDTb\nUOsadWwrgLLssOH5SSBOLIcYjg52b5KL/u/LLx9u/BUZFDUz3B6OQxpSThf0\n519wLa7YtruCOEJBKHmliGx/d0Lnjwif37NCL9C+jU+niYeeWcZ+eEZf8ssd\nh2dZE4Z8AmfN1BrR+pfZh9y8fBPDqBpTJK1BHGYg4MFTZNoovE4jTh5FUfh/\nn2AgIFOjVg4XU6AvNqfonVt/C6x81i26FkJxZkqYn+xTWpzIdyYk43Ds/xr4\nejtA7FX69jU1YXqH9QmhhJNoOpiZEzrMBFDA6zdbMYtHrHqmuR4R4cR7KbDk\nvNED0E+CTGUo+Wn/oVibZVOEkgu18315KSEwqkyRfN2O01JBMB5Xfec/xVzl\nXVES\r\n=tGSX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"index.mjs","engines":{"node":">=8"},"gitHead":"b55f198afcf6a09eb83de89407796b993bd6aa8b","scripts":{"dist":"rollup -f umd -n commonSequence -o dist/index.js index.mjs","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.mjs > README.md","test":"npm run dist && test-runner test.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/common-sequence.git","type":"git"},"_npmVersion":"6.11.3","description":"Returns an array containing the initial elements which both input arrays have in common","directories":{},"_nodeVersion":"12.10.0","_hasShrinkwrap":false,"devDependencies":{"rollup":"^1.21.4","test-runner":"^0.6.0","jsdoc-to-markdown":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/common-sequence_2.0.0_1569698867946_0.38371915046787564","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"common-sequence","version":"2.0.1","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"common-sequence@2.0.1","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/common-sequence#readme","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"dist":{"shasum":"5f2235f98895af75a9a4e2542271ac6037666573","tarball":"https://registry.npmjs.org/common-sequence/-/common-sequence-2.0.1.tgz","fileCount":6,"integrity":"sha512-Mploxq1cmWFoV6vVlkMApQqPKZrYdxp6sync1Bb3PHSlSSCX5kqrV9V3P1ymLL2KsYc//OeJ1fF701aBUS72rg==","signatures":[{"sig":"MEUCIQDPixvpWuJhm9K1eM1G3r7afHunzgFhcH6cmB/gm//rbAIgIuCrqtZ4x9i1IjSPXDuT2zEFGcmxeEOA6hH3OXSeJYU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8463,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgTTlhCRA9TVsSAnZWagAAp60P/0I95TYMM6I1ZULL9TG2\nbB/m3pUBqIYpXBbWw4bMahOMjupVXa2zY/8aD6ihBlPWJbpdRH3NLFPgkEaU\ni3eNxQubhYjnz2Uye9xd04HuDe1Jbmy8C8bhkekLsGRsRNl/cAy6qofnx5oz\nPt3Zu6LLfPKpMvRpsbG88h0zaL1GC7KyEfF59L81ieKlHxqoClk5VeThhc/x\n/E8fsSg7QD+k9UsGDV1YF3oEYKNpmGZ3qNu2SYub1IDb+FPwJ+6n5iAk8TNK\nMmAl8gOHmsEGefedzGYxNAos3XRBOeiiL+a97Iu2L8ppCFJ/hFGoOcMzYFYV\nvtKt0lVmqih8abUBfJ3Ixb65TIEaHpEW431dPOYcuDPycO1rMLGbQKuNs1Ek\n+wSVFSpb4af+BC4JpnT0EUhf49sm/JpZyJt/NAEotgUiscN0j4t/xtjgenC6\nT2gvj5zPvCREqyWdrbNQv+53Ehw0kdsfUldbpw/7cKX/n43jH1H28nsSn+G0\nc1BLhQWO10xsXuGricF1sfpi7ir0v2Bax3FGVTYoFAvH+Bn204uF7WCGtcsW\n+MYqxL+oFY9gan4izTvqyW3MAS0bZ0ZCp+xdh0Rz1fbCpcSYzBu47jW+jDTR\nYLiGIWcwdlfYlhJdOI+b5UNzEWBfrol+HPFmQHL+MVSclJ3RhKtGppE6njJF\nVnt/\r\n=OnTk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"index.mjs","engines":{"node":">=8"},"gitHead":"983fd63df17fbcea5a499b6f0b4a02280065c649","scripts":{"dist":"rollup -f umd -n commonSequence -o dist/index.js index.mjs","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.mjs > README.md","test":"npm run dist && test-runner test.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/common-sequence.git","type":"git"},"_npmVersion":"7.6.0","description":"Returns an array containing the initial elements which both input arrays have in common","directories":{},"_nodeVersion":"15.11.0","_hasShrinkwrap":false,"devDependencies":{"rollup":"^2.41.2","test-runner":"^0.6.3","jsdoc-to-markdown":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/common-sequence_2.0.1_1615673696670_0.6289296568600631","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"common-sequence","version":"2.0.2","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","_id":"common-sequence@2.0.2","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"homepage":"https://github.com/75lb/common-sequence#readme","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"dist":{"shasum":"accc76bdc5876a1fcd92b73484d4285fff99d838","tarball":"https://registry.npmjs.org/common-sequence/-/common-sequence-2.0.2.tgz","fileCount":6,"integrity":"sha512-jAg09gkdkrDO9EWTdXfv80WWH3yeZl5oT69fGfedBNS9pXUKYInVJ1bJ+/ht2+Moeei48TmSbQDYMc8EOx9G0g==","signatures":[{"sig":"MEUCIQCTw0za3ONCZnJtaSp3YM3tJlPze9a6s8BPyMIEEJ3liAIgFLcWtkKUEdR9U2YrHH4JyTmYumNJi08oG2rioFe7h3w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgTTnTCRA9TVsSAnZWagAAXQ0QAIZD5H+UkypgMa6rbobU\nCoqNrrocVl7mEWf66v6dyKisLi4QhlyJdReXS/7WlnxsCocKwSM8SOkPppge\nJbnSWg8UUi1sF244aZK66g1+nO6Ld2nqdh4SfscPJGgGCMUD9xFmfVCnS7Xa\nm3qehxiRYS+rNqjESuJdBwnW5Dv5hVcGRtOOnT94+LpjunY8olRc/66Try0h\nQ3VNW8Z2otR0J2lHW7Jn8vPUSr8DZ42rpFeE1xHptOR0G+SZXTxwIRsoR0l6\nYXLEALfHjooiizuxQj5wLVJXGVxrKvD7jjRhHs2iaueUC39Yc/4NAx8KPtxQ\nvc4k33bOzLeS7RCHgcrxZs7i0V4h3gITu85u4FwT84rsdLUKdYHW1QvD8M9x\nASUklXEjxKRkC8bJOHKECGlhPOKo5qtSfoOWE24AC2If8gH8uw1inXRgtZCo\ne+2XYVgbxtoVujrFpekBuDTIzIht9VIKneugn2MdyB5eV3P9a4I9l90l5eRT\nOJNz2QvKYASQJB1P8mi+KwjErQ8dN6dcVTwrDaQw1nM731eciKf6myzzJ8dD\nthkJGY5gN6r9OkADY1jFY/wgB6tDgEskGcfNyLk9DVVsxGHnADFoTacbxaCm\n9uKK0SBKOJFpsZA+Hmyfn5z8feWlyXKByVte9EM4FrZsJposKGGs1RFUF32o\nj3xe\r\n=pWA0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"index.mjs","engines":{"node":">=8"},"gitHead":"658a3d0557cc3f98aa7ac0e2309b697ccf387619","scripts":{"dist":"rollup -f umd -n commonSequence -o dist/index.js index.mjs","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.mjs > README.md","test":"test-runner test.js"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"repository":{"url":"git+https://github.com/75lb/common-sequence.git","type":"git"},"_npmVersion":"7.6.0","description":"Returns an array containing the initial elements which both input arrays have in common","directories":{},"_nodeVersion":"15.11.0","_hasShrinkwrap":false,"devDependencies":{"rollup":"^2.41.2","test-runner":"^0.6.3","jsdoc-to-markdown":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/common-sequence_2.0.2_1615673811360_0.5091201632017037","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"common-sequence","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"3.0.0","description":"Returns an array containing the initial elements which both input arrays have in common","repository":{"type":"git","url":"git+https://github.com/75lb/common-sequence.git"},"license":"MIT","type":"module","exports":{"import":"./index.js","require":"./dist/index.cjs"},"keywords":["common","path","folder","dir","compare","parent","array","sequence"],"engines":{"node":">=12.17"},"scripts":{"test":"75lb-nature test-runner test.js","docs":"75lb-nature jsdoc2md -t README.hbs index.js > README.md","dist":"75lb-nature cjs-build index.js"},"devDependencies":{},"_id":"common-sequence@3.0.0","gitHead":"0d1db744303d3aa6387001acd465dc7cdc2eb17f","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"homepage":"https://github.com/75lb/common-sequence#readme","_nodeVersion":"22.8.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-g/CgSYk93y+a1IKm50tKl7kaT/OjjTYVQlEbUlt/49ZLV1mcKpUU7iyDiqTAeLdb4QDtQfq3ako8y8v//fzrWQ==","shasum":"d631cf0306fb2dea97e1d6669a1627950803fca1","tarball":"https://registry.npmjs.org/common-sequence/-/common-sequence-3.0.0.tgz","fileCount":6,"unpackedSize":7897,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+sFrfHtAuPzNLzp9tOqjRNErvYni9apyErZf1qdlZKAiEAhAwbUNrG3hSkE/0PO4ddX4QlgUZ/ETQvofuRn51E2WI="}]},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/common-sequence_3.0.0_1725628972070_0.9282978035620797"},"_hasShrinkwrap":false}},"time":{"created":"2015-06-22T19:37:57.207Z","modified":"2024-09-06T13:22:52.377Z","0.0.0":"2015-06-22T19:37:57.207Z","1.0.0":"2015-06-22T19:41:51.322Z","1.0.1":"2015-06-22T19:45:42.244Z","1.0.2":"2015-06-22T19:48:07.842Z","2.0.0":"2019-09-28T19:27:48.076Z","2.0.1":"2021-03-13T22:14:56.810Z","2.0.2":"2021-03-13T22:16:51.567Z","3.0.0":"2024-09-06T13:22:52.198Z"},"bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"license":"MIT","homepage":"https://github.com/75lb/common-sequence#readme","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"repository":{"type":"git","url":"git+https://github.com/75lb/common-sequence.git"},"description":"Returns an array containing the initial elements which both input arrays have in common","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"readme":"[![view on npm](https://badgen.net/npm/v/common-sequence)](https://www.npmjs.org/package/common-sequence)\n[![npm module downloads](https://badgen.net/npm/dt/common-sequence)](https://www.npmjs.org/package/common-sequence)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/common-sequence)](https://github.com/75lb/common-sequence/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/common-sequence)](https://github.com/75lb/common-sequence/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/common-sequence/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/common-sequence/actions/workflows/node.js.yml)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n<a name=\"module_common-sequence\"></a>\n\n## common-sequence\nReturns an array containing the initial elements which both input arrays have in common.\n\nA common use-case for this is discovering common ancestors between two file paths.\n\n```js\n> commonSequence = require('common-sequence');\n\n> pathA = '/Users/lloyd/Documents/75lb/dmd'.split('/');\n> pathB = '/Users/lloyd/Documents/75lb/array-tools'.split('/');\n\n> commonSequence(pathA, pathB).join('/');\n'/Users/lloyd/Documents/75lb'\n```\n\nor a more trivial example:\n```js\n> a.commonSequence([ 1, 2, 3 ], [ 1, 2, 4 ])\n[ 1, 2 ]\n```\n\n<a name=\"exp_module_common-sequence--commonSequence\"></a>\n\n### commonSequence(a, b) ⇒ <code>Array</code> ⏏\nReturns the initial elements which both input arrays have in common\n\n**Kind**: Exported function  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| a | <code>Array</code> | first array to compare |\n| b | <code>Array</code> | second array to compare |\n\n\n### Load anywhere\n\nThis library is compatible with Node.js and the Web. It can be loaded anywhere, natively without transpilation.\n\nNode.js CommonJS:\n\n```js\nconst commonSequence = require('common-sequence')\n```\n\nNode.js ECMAScript Module:\n\n```js\nimport commonSequence from 'common-sequence'\n```\n\nWithin an modern browser ECMAScript Module:\n\n```js\nimport commonSequence from './node_modules/common-sequence/index.js'\n```\n\n* * *\n\n&copy; 2015-25 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","readmeFilename":"README.md","users":{"rocket0191":true}}