-
- ANDROID
- ANDROID_TABLET
- CHROME
- CHROME_VERSION
- DOC_MODE
- DOC_MODE_IE10_LT
- DOC_MODE_IE11_LT
- DOC_MODE_IE12_LT
- DOC_MODE_IE8_LT
- DOC_MODE_IE9_LT
- EDGE
- FIREFOX
- IE10_LT
- IE11_LT
- IE7_LT
- IE8_LT
- IE9_LT
- IE_COMPATIBLE
- IE_VERSION
- IPAD
- IPHONE
- LINUX
- MAC
- MOBILE
- MOBILE_IOS
- MOZILLA
- MSIE
- OPERA
- OPERA_MINI
- OS_VERSION
- SAFARI
- SAMSUNG
- SAMSUNG_VERSION
- SMART_PHONE
- TABLET
- TOUCH_DEVICE
- VERSION
- WEBKIT
- WEBKIT_VERSION
- WINDOWS
- WINDOWS_PHONE
- WINDOWS_TABLET
-
- addChild
- addClass
- addEvent
- attr
- children
- clone
- closest
- contentHeight
- contentWidth
- css
- each
- element
- hasClass
- hasEvent
- height
- html
- innerHeight
- innerWidth
- insertSWF
- match
- next
- outerHeight
- outerWidth
- parent
- prev
- prop
- rect
- remove
- removeAllEvent
- removeAttr
- removeChild
- removeClass
- removeEvent
- removeProp
- replaceWith
- scrollLeft
- scrollTop
- selector
- selectorAll
- text
- transition
- trigger
- width
isEqual()
Type : public method
Support : 1.0
Return : Boolean
- data 비교, Object, Array는 깊은 비교 (value의 type까지 같아야 true)
v1.1.2 에서 빈 Object나 Array끼리 비교해도 true가 나오도록 수정
Methods
-
isEqual( val1, val2 ) : Booleanver 1.0~
-
val1 : *비교 data 1
-
val2 : *비교 data 2
-
Example
var data1 = {age: '24', name: 'Jene', items: [0, 1, 2]},
data2 = {age: 24, name: 'Jene', items: [0, 1, 2]},
data3 = {age: 24, name: 'Jene', items: [0, 1, 2]};
$B.isEqual( data1, data2 );//false
$B.isEqual( data2, data3 );//true
$B.isEqual( {}, {} );//true