This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func giveMeAStringMaybe(_ maybe: Bool) -> String? { | |
return maybe ? "Yes!" : nil | |
} | |
let str: String? = giveMeAStringMaybe(true) | |
if let unwrappedStr = str { | |
print(unwrappedStr is String) // prints: true | |
print(unwrappedStr) // prints: "Yes!" | |
} else { | |
print(str) // prints: nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function () { | |
if (!this.$sizingHeader) return; | |
this.$element.prepend(this.$sizingHeader); | |
var $sizingCells = this.$sizingHeader.find('th'); | |
var columnCount = $sizingCells.length; | |
var tableWidth = $sizingCells.parent().width(); // Used to calculate the width percent | |
function matchSizingCellWidth(i, el) { |
NewerOlder