SP.ListItemCreationInformation.underlyingObjectType property (sp.js)
Gets or sets a value that specifies whether the new list item is a file or a folder.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.ListItemCreationInformation.get_underlyingObjectType ()
var value = SP.ListItemCreationInformation.set_underlyingObjectType ()
Return value
Type: SP.FileSystemObjectType
Remarks
It must be one of the following values: File or Folder.