1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00

Merge remote-tracking branch 'upstream/master' into allow-no-html-escape

This commit is contained in:
Nguyễn Việt Hưng
2018-07-04 13:50:10 +07:00
98 changed files with 3852 additions and 2050 deletions

View File

@@ -47,7 +47,25 @@ function escapeHtmlCharacters (html) {
return html
}
export function isObjectEqual (a, b) {
const aProps = Object.getOwnPropertyNames(a)
const bProps = Object.getOwnPropertyNames(b)
if (aProps.length !== bProps.length) {
return false
}
for (var i = 0; i < aProps.length; i++) {
const propName = aProps[i]
if (a[propName] !== b[propName]) {
return false
}
}
return true
}
export default {
lastFindInArray,
escapeHtmlCharacters
escapeHtmlCharacters,
isObjectEqual
}