couchbaselabs/sync_gateway — pull request #73 by robertkrimen (2013-05-17 01:34:18+00:00)
Title: A better way to get a string array from an otto.Value

Here is yet an even better way to get a string array from an otto.Value

It does not depend on what the otto.Value is, just what it does .Export(), which is a much better, "futureproof" way to do it (no inspection against the .Class() value is needed).

This way is also nice because there is no redundant "if this type do this" sort of thing.