Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit eb21c16

Browse files
committed
mv
1 parent 077b633 commit eb21c16

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"README.md",
88
"lib/Scrollspy.js",
99
"lib/throttle.js",
10-
"lib/is-equal-array.js",
1110
"package.json",
1211
"webpack.config.babel.js",
1312
".eslintrc"

src/js/lib/Scrollspy.jsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@ import PropTypes from 'prop-types'
22
import React from 'react'
33
import classNames from 'classnames'
44
import throttle from './throttle'
5-
import isEqualArray from './is-equal-array'
5+
6+
function isEqualArray(a, b) {
7+
return (
8+
a.length === b.length
9+
&&
10+
a.every((item, index) => {
11+
return item === b[index]
12+
})
13+
)
14+
}
615

716
export default class Scrollspy extends React.Component {
817

0 commit comments

Comments
 (0)