{"_id":"common-sequence","_rev":"1145865","name":"common-sequence","description":"Returns an array containing the initial elements which both input arrays have in common","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2024-10-31T01:58:50.000Z","created":"2015-06-22T19:37:57.207Z","3.0.0":"2024-09-06T13:22:52.198Z","2.0.2":"2021-03-13T22:16:51.567Z","2.0.1":"2021-03-13T22:14:56.810Z","2.0.0":"2019-09-28T19:27:48.076Z","1.0.2":"2015-06-22T19:48:07.842Z","1.0.1":"2015-06-22T19:45:42.244Z","1.0.0":"2015-06-22T19:41:51.322Z","0.0.0":"2015-06-22T19:37:57.207Z"},"users":{"rocket0191":true},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/common-sequence.git"},"versions":{"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":"http://registry-npm.ywwl.com/common-sequence/download/common-sequence-3.0.0.tgz","fileCount":6,"unpackedSize":7897,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+sFrfHtAuPzNLzp9tOqjRNErvYni9apyErZf1qdlZKAiEAhAwbUNrG3hSkE/0PO4ddX4QlgUZ/ETQvofuRn51E2WI="}],"size":2359,"noattachment":false,"key":"/common-sequence/-/common-sequence-3.0.0.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/common-sequence_3.0.0_1725628972070_0.9282978035620797"},"_hasShrinkwrap":false,"publish_time":1725628972198,"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_cnpm_publish_time":1725628972198},"2.0.2":{"name":"common-sequence","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.2","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","main":"dist/index.js","module":"index.mjs","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"engines":{"node":">=8"},"scripts":{"test":"test-runner test.js","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.mjs > README.md","dist":"rollup -f umd -n commonSequence -o dist/index.js index.mjs"},"devDependencies":{"jsdoc-to-markdown":"^7.0.0","rollup":"^2.41.2","test-runner":"^0.6.3"},"gitHead":"658a3d0557cc3f98aa7ac0e2309b697ccf387619","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"homepage":"https://github.com/75lb/common-sequence#readme","_id":"common-sequence@2.0.2","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-jAg09gkdkrDO9EWTdXfv80WWH3yeZl5oT69fGfedBNS9pXUKYInVJ1bJ+/ht2+Moeei48TmSbQDYMc8EOx9G0g==","shasum":"accc76bdc5876a1fcd92b73484d4285fff99d838","tarball":"http://registry-npm.ywwl.com/common-sequence/download/common-sequence-2.0.2.tgz","fileCount":6,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTw0za3ONCZnJtaSp3YM3tJlPze9a6s8BPyMIEEJ3liAIgFLcWtkKUEdR9U2YrHH4JyTmYumNJi08oG2rioFe7h3w="}],"size":2652,"noattachment":false,"key":"/common-sequence/-/common-sequence-2.0.2.tgz"},"_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_2.0.2_1615673811360_0.5091201632017037"},"_hasShrinkwrap":false,"publish_time":1615673811567,"_cnpm_publish_time":1615673811567},"2.0.1":{"name":"common-sequence","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.0.1","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","main":"dist/index.js","module":"index.mjs","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"engines":{"node":">=8"},"scripts":{"test":"npm run dist && test-runner test.js","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.mjs > README.md","dist":"rollup -f umd -n commonSequence -o dist/index.js index.mjs"},"devDependencies":{"jsdoc-to-markdown":"^7.0.0","rollup":"^2.41.2","test-runner":"^0.6.3"},"gitHead":"983fd63df17fbcea5a499b6f0b4a02280065c649","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"homepage":"https://github.com/75lb/common-sequence#readme","_id":"common-sequence@2.0.1","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-Mploxq1cmWFoV6vVlkMApQqPKZrYdxp6sync1Bb3PHSlSSCX5kqrV9V3P1ymLL2KsYc//OeJ1fF701aBUS72rg==","shasum":"5f2235f98895af75a9a4e2542271ac6037666573","tarball":"http://registry-npm.ywwl.com/common-sequence/download/common-sequence-2.0.1.tgz","fileCount":6,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPixvpWuJhm9K1eM1G3r7afHunzgFhcH6cmB/gm//rbAIgIuCrqtZ4x9i1IjSPXDuT2zEFGcmxeEOA6hH3OXSeJYU="}],"size":2661,"noattachment":false,"key":"/common-sequence/-/common-sequence-2.0.1.tgz"},"_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_2.0.1_1615673696670_0.6289296568600631"},"_hasShrinkwrap":false,"publish_time":1615673696810,"_cnpm_publish_time":1615673696810},"2.0.0":{"name":"common-sequence","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"2.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","main":"dist/index.js","module":"index.mjs","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"engines":{"node":">=8"},"scripts":{"test":"npm run dist && test-runner test.js","docs":"jsdoc2md -c jsdoc.conf -t README.hbs index.mjs > README.md","dist":"rollup -f umd -n commonSequence -o dist/index.js index.mjs"},"devDependencies":{"jsdoc-to-markdown":"^5.0.1","rollup":"^1.21.4","test-runner":"^0.6.0"},"gitHead":"b55f198afcf6a09eb83de89407796b993bd6aa8b","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"homepage":"https://github.com/75lb/common-sequence#readme","_id":"common-sequence@2.0.0","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-f0QqPLpRTgMQn/pQIynf+SdE73Lw5Q1jn4hjirHLgH/NJ71TiHjXusV16BmOyuK5rRQ1W2f++II+TFZbQOh4hA==","shasum":"a4f01aaf5aebd0ac1ce43653e8c8fe6f0ef3a987","tarball":"http://registry-npm.ywwl.com/common-sequence/download/common-sequence-2.0.0.tgz","fileCount":6,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGM4PNpOPi9OizXl2iWF/bCbcKnDXQ8Qfou5p+xyjGl0AiAbdps5L9toaIi+E2wlsUg5SA++u5zmjqgvlU9a2XQKfQ=="}],"size":2578,"noattachment":false,"key":"/common-sequence/-/common-sequence-2.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/common-sequence_2.0.0_1569698867946_0.38371915046787564"},"_hasShrinkwrap":false,"publish_time":1569698868076,"_cnpm_publish_time":1569698868076},"1.0.2":{"name":"common-sequence","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.2","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","main":"./lib/common-sequence.js","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"bdfd45b1358fd8fc8f90c90dde9960cc9555fb01","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"homepage":"https://github.com/75lb/common-sequence#readme","_id":"common-sequence@1.0.2","_shasum":"30e07f3f8f6f7f9b3dee854f20b2d39eee086de8","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"30e07f3f8f6f7f9b3dee854f20b2d39eee086de8","tarball":"http://registry-npm.ywwl.com/common-sequence/download/common-sequence-1.0.2.tgz","integrity":"sha512-z3ln8PqfoBRwY1X0B1W0NEvfuo3+lZdvVjYaxusK84FPGkBy+ZqfbMhgdGOLr1v1dv13z5KYOtbL/yupL4I8Yw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDTJpx2JRFAC4CJe6+tUmuojoCrfevLYotJVdLCAPHB8AiBODXpDv0sGuZwdBeLTVNTCmtfusqAhdgKqVVLMRd/amw=="}],"size":2490,"noattachment":false,"key":"/common-sequence/-/common-sequence-1.0.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1435002487842,"_cnpm_publish_time":1435002487842},"1.0.1":{"name":"common-sequence","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.1","description":"common-sequence","repository":{"type":"git","url":"git+https://github.com/75lb/common-sequence.git"},"license":"MIT","main":"./lib/common-sequence.js","keywords":["common","path","folder","dir","compare","parent","array","sequence"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"7a20e064663bc02aff788000f81eb60414172bce","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"homepage":"https://github.com/75lb/common-sequence#readme","_id":"common-sequence@1.0.1","_shasum":"2ea04175c819a8084699638f75bbd4de8a396fec","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"2ea04175c819a8084699638f75bbd4de8a396fec","tarball":"http://registry-npm.ywwl.com/common-sequence/download/common-sequence-1.0.1.tgz","integrity":"sha512-pRGkQmbbcu00CoJxR54u+YblFXcF3Bb6BBRfw5I31FAT3J+wA5ZIa97ieBgBngJ01rAsTjET6M3nWJbPV/fo2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPxLQjLr2DbDdXtHfwHgm67a/tmcH7ZrW2Wn4xDatFkwIgI7JAictVWlRXN3Lz7L8Dhh/N8DDvzIZxShx0eTu7qms="}],"size":2488,"noattachment":false,"key":"/common-sequence/-/common-sequence-1.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1435002342244,"_cnpm_publish_time":1435002342244},"1.0.0":{"name":"common-sequence","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"common-sequence","repository":{"type":"git","url":"git+https://github.com/75lb/common-sequence.git"},"license":"MIT","main":"./lib/common-sequence.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"d14e02bc154444c9af78b6223438d85ce0e4f306","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"homepage":"https://github.com/75lb/common-sequence#readme","_id":"common-sequence@1.0.0","_shasum":"782c66b86e788a2e89301bfd90a51a350474a7a1","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"782c66b86e788a2e89301bfd90a51a350474a7a1","tarball":"http://registry-npm.ywwl.com/common-sequence/download/common-sequence-1.0.0.tgz","integrity":"sha512-WmFqtKL+iVqn1dH5CWXJbnSNGhYqkCgkm8GQ15E7kVryFWsl9pMDdLClM4hkS/rrJPHXr1OIXcCUm7vP4d5M8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFRL+BNd5m0IOzZ/GeKlyI7MQ0aH0sghC6usL9PUbttxAiEAtnLJpmGu1JoGdkuYkm+QpOMokB4yhNP879KE7mfdK20="}],"size":2451,"noattachment":false,"key":"/common-sequence/-/common-sequence-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1435002111322,"_cnpm_publish_time":1435002111322},"0.0.0":{"name":"common-sequence","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.0.0","description":"common-sequence","repository":{"type":"git","url":"git+https://github.com/75lb/common-sequence.git"},"license":"MIT","main":"./lib/common-sequence.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"8e40345374c37993fe5904e765ca5f519a08e8d2","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"homepage":"https://github.com/75lb/common-sequence#readme","_id":"common-sequence@0.0.0","_shasum":"be36fca5cc4874ec238ab8b939ac03cd1f97b632","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"be36fca5cc4874ec238ab8b939ac03cd1f97b632","tarball":"http://registry-npm.ywwl.com/common-sequence/download/common-sequence-0.0.0.tgz","integrity":"sha512-lrZ6TzIqxkqMbIHk7rCqoysZlVr6WW/FmJCMc+Pmmjhr8HKFz4xd15fksbAOMNcqAfi2EE6I6XZ6uaihazeBVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdyihI8WVjZsszi2YHwOeR3gPnOt6+wL4KJdAmVm8lJAiBJRX/VA6Znh4j7gRUAJ8eaMF8rsxAb1k2l08HeqUydrw=="}],"size":2373,"noattachment":false,"key":"/common-sequence/-/common-sequence-0.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1435001877207,"_cnpm_publish_time":1435001877207}},"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","_attachments":{},"homepage":"https://github.com/75lb/common-sequence#readme","bugs":{"url":"https://github.com/75lb/common-sequence/issues"},"license":"MIT"}