You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
345 B

4 years ago
  1. # object
  2. Object utils.
  3. ## API
  4. ### .keys(obj)
  5. Return the keys for `obj`.
  6. ### .values(obj)
  7. Return the values for `obj`.
  8. ### .length(obj)
  9. Return the number of keys for `obj`.
  10. ### .isEmpty(obj)
  11. Check if `obj` is empty.
  12. ### .merge(a, b)
  13. Merge object `b` into `a`, returns `a`.
  14. Precedence is given to `b`.
  15. ## License
  16. MIT