mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
18 lines
471 B
JavaScript
18 lines
471 B
JavaScript
|
'use strict';
|
||
|
|
||
|
var RequireObjectCoercible = require('es-abstract/2019/RequireObjectCoercible');
|
||
|
var has = require('has');
|
||
|
var bind = require('function-bind');
|
||
|
var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable);
|
||
|
|
||
|
module.exports = function entries(O) {
|
||
|
var obj = RequireObjectCoercible(O);
|
||
|
var entrys = [];
|
||
|
for (var key in obj) {
|
||
|
if (has(obj, key) && isEnumerable(obj, key)) {
|
||
|
entrys.push([key, obj[key]]);
|
||
|
}
|
||
|
}
|
||
|
return entrys;
|
||
|
};
|