Sha256: 22b4d0b9d2c784f8d166be6e55a6ce7db45399ce48c2c95e549c61a53ce13b18

Contents?: true

Size: 305 Bytes

Versions: 4

Compression:

Stored size: 305 Bytes

Contents

Trix.extend
  copyObject: (object = {}) ->
    result = {}
    result[key] = value for key, value of object
    result

  objectsAreEqual: (a = {}, b = {}) ->
    return false unless Object.keys(a).length is Object.keys(b).length
    for key, value of a
      return false unless value is b[key]
    true

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vapid-0.1.3 lib/vapid/vendor/trix/src/trix/core/helpers/objects.coffee
vapid-0.1.2 lib/vapid/vendor/trix/src/trix/core/helpers/objects.coffee
vapid-0.1.1 lib/vapid/vendor/trix/src/trix/core/helpers/objects.coffee
vapid-0.1.0 lib/vapid/vendor/trix/src/trix/core/helpers/objects.coffee