2016-02-19から1日間の記事一覧
よく忘れてしまうので、メモ /** * null 、undefined、空文字('') であるかを判定します. * * @name isEmpty * @function */ function isEmpty(val) { if (!val) { // null / undefined / 空文字('')、そして 0 / false が該当する // 0(int型) または false…
よく忘れてしまうので、メモ /** * null 、undefined、空文字('') であるかを判定します. * * @name isEmpty * @function */ function isEmpty(val) { if (!val) { // null / undefined / 空文字('')、そして 0 / false が該当する // 0(int型) または false…