#
Vinyl.isVinyl()Determines if an object is a Vinyl instance. Use this method instead of instanceof
.
Note: This method uses an internal property that some older versions of Vinyl didn't expose resulting in a false negative if using an outdated version.
#
Usage#
Signature#
Parametersparameter | type | note |
---|---|---|
file | object | The object to check. |
#
ReturnsTrue if the file
object is a Vinyl instance.