Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Conversation

@nodtem66
Copy link
Contributor

Patch #9:

  • The emptiness of any function is false
empty( function() {} ); // false
empty( function() {return 0;} ); // false

Patch #10:

  • Propose a new method to assert the emptiness of objects. both for...in and Object.keys() return only enumerable properties, whereas Object.getOwnPropertyNames() lists all enumerable and non-enumerable properties. see: MDN
  • Propose the TDD running in browser (NEED REVIEW)
    • npm build:test browsify test/index.js to test/browser.index.js
    • open test/runner.html (no webserver required)

- add mocha for browser (NEED REVIEW)
  - create `runner.html`
  - build `browser.index.js` from browserify
- fixed isEmpty(Object) by check length of
  `Object.getOwnPropertyNames`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant