JSZip.loadAsync(data [, options])

This is a shortcut for

var zip = new JSZip();
zip.loadAsync(data, options);

Please see the documentation of loadAsync.

Examples

dataAsPromise
.then(JSZip.loadAsync)
.then(function(zip) {...})