knockout/knockout — pull request #1198 by timtucker (2013-11-11 18:34:41+00:00)
Title: simplify isWritableObservable, hasPrototype

Simplify isWritableObservable by using existing methods for isObservable and isComputed.

Since the only uses of ko.hasPrototype are in ko.isObservable and ko.isComputed and doesn't seem to be used, I went ahead and simplified the null / undefined checks with a check to see if the instance has a typeof "function". (Arguably the function might be more clearly named "ko.hasFunctionPrototype" with the new behavior)